This project is a visually stunning representation of the solar system, built using React.js. It features accurate time-scaled orbits of planets, a dynamic starfield background, and smooth CSS animations. Explore how planets orbit the sun and customize the speed of revolutions to your liking. Inspired by the beauty of space and a love for creative.
A simple yet captivating Solar System animation built with React.js. This project represents a true time-scaled version of the solar system, where every object revolves relative to an Earth year.
Live Demo: Solar System
Clone the repository:
git clone https://github.com/your-username/solarsystem.git
Install the dependencies:
npm install
Start the project:
npm start
The project will run locally at http://localhost:3000
.
You can adjust the speed of planet revolutions by changing the --year-in-second
variable in the SolarSystem.css
file:
:root {
--year-in-second: 30s; /* 1 Earth year = 30 sec */
}
Feel free to play around with this value to speed up or slow down the revolutions.
If you liked this project, don't forget to give it a star to this repo.