A mobile-responsive interactive 3D simulation of the solar system built using Three.js and Vite.
This project demonstrates 3D graphics, animations, and user interaction without CSS animations β everything is rendered and animated via JavaScript and WebGL.
- βοΈ Sun at the center of the solar system
- π© 8 orbiting planets with realistic distances and sizes
- ποΈ Speed control sliders for each planet (0.1Γ to 3Γ)
- β Pause/Resume animation
- π§± Zoom-in on planet click
- π Background stars and orbit rings
- π Tooltips on hover with planet names
- βΊ Reset all speeds button
- π± Fully responsive canvas view
- Three.js β for rendering 3D objects and animation
- Vite β for local development and bundling
- Vanilla JavaScript + HTML
your-project/
βββ index.html
βββ main.js
βββ package.json
βββ node_modules/
βββ README.md
Or create a new folder and add the provided files.
Make sure you have Node.js installed, then run:
npm installnpm run devVite will start a local server. Open the URL shown in the terminal, typically:
http://localhost:5173/
- All animations are done using
THREE.ClockandrequestAnimationFrame - No CSS animations are used
- Optimized for modern browsers and mobile-responsiveness
- Works standalone with just Node.js and Vite
- Powered by Three.js
- Developed by Prathmesh Pimpalshende