An open API service indexing awesome lists of open source software.

https://github.com/madhurimarawat/animated-solar-system

This project is an interactive solar system visualization using pure HTML, CSS, and JavaScript. It creatively represents each planet with beautiful animations and dynamic UI elements.
https://github.com/madhurimarawat/animated-solar-system

animation beautiful-ui contributions-welcome creative-design css-design deployment documentation good-first-issue html html-css-javascript mit-license open-source responsive-design solar-system solar-system-simulation ui-design ux-design web-development website

Last synced: about 2 months ago
JSON representation

This project is an interactive solar system visualization using pure HTML, CSS, and JavaScript. It creatively represents each planet with beautiful animations and dynamic UI elements.

Awesome Lists containing this project

README

          

# ๐ŸŒŒ Animated Solar System ๐ŸŒŒ

This project is an **interactive solar system visualization** using pure **HTML, CSS, and JavaScript**. It creatively represents each planet with beautiful animations and dynamic UI elements.



GitHub stars


GitHub forks


GitHub issues


MIT License


Watchers


Top language


Last commit







---

## โœจ Features

* ๐ŸŒž Glowing Sun with realistic effects
* ๐Ÿช Animated planetary orbits with gradient styling
* ๐Ÿง  Interactive cards showing info on hover
* ๐ŸŒ— Light/Dark mode toggle for user preference
* ๐ŸŽฏ Fully responsive layout using Bootstrap
* โญ Font Awesome icons for stylish visuals
* ๐Ÿ–‹๏ธ Elegant typography using Google Fonts
* ๐Ÿ’ป Cross-device compatibility

---

## ๐Ÿ—‚๏ธ Directory Structure

```bash
๐Ÿ“ Animated-Solar-System/
โ”œโ”€โ”€ ๐Ÿ“„ index.html # Main HTML page ๐ŸŒ
โ”œโ”€โ”€ ๐Ÿ“ css/
โ”‚ โ”œโ”€โ”€ ๐ŸŽจ index.css # Core styling for layout & animations
โ”‚ โ”œโ”€โ”€ ๐ŸŒ— light-mode.css # Styles for light theme
โ”‚ โ”œโ”€โ”€ ๐ŸŒ‘ dark-mode.css # Styles for dark theme
โ”‚ โ”œโ”€โ”€ ๐Ÿช planets.css # Orbit & planet-specific styles
โ”‚ โ”œโ”€โ”€ ๐Ÿ“ฑ responsive-styles.css # Additional responsive adjustments
โ”‚ โ””โ”€โ”€ ๐ŸŽฏ targeted-devices.css # Media queries for specific screen sizes
โ”œโ”€โ”€ ๐Ÿ“ js/
โ”‚ โ””โ”€โ”€ ๐Ÿงฉ index.js # JavaScript for interactivity & toggles
โ”‚ โ””โ”€โ”€ ๐Ÿงฉ mobile-index.js # JavaScript for interactivity & toggles (Mobile)
โ”œโ”€โ”€ ๐Ÿ“ snapshots/ # GIF previews and Static theme snapshots
โ”‚ โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ preview.png
โ”‚ โ””โ”€โ”€ ๐Ÿ’ก preview-light.png
โ”œโ”€โ”€ ๐Ÿ“„ README.md # You're here! ๐Ÿ“˜
โ”œโ”€โ”€ ๐Ÿ“„ LICENSE # MIT License ๐Ÿ“œ
โ””โ”€โ”€ ๐Ÿ“„ CONTRIBUTING.md # Contribution guidelines ๐Ÿค
```

---

## ๐Ÿ› ๏ธ Tech Stack & Dependencies

* **HTML5** โ€“ Semantic structure
* **CSS3** โ€“ Animations, themes, layout
* **JavaScript** โ€“ Dynamic interactivity
* **Bootstrap 4.5.2** โ€“ Grid and responsiveness ๐Ÿ“ฆ
* **Font Awesome 5.15.4** โ€“ Icons โญ
* **Google Fonts (Marcellus)** โ€“ Clean typography ๐Ÿ–‹๏ธ

---

## ๐Ÿš€ Usage

> [!TIP]
> Just clone and open `index.html` in any browser!

```bash
git clone https://github.com/madhurimarawat/Animated-Solar-System.git
cd Animated-Solar-System
```

> [!NOTE]
> ๐Ÿ“˜ [Read the Contribution Guide](CONTRIBUTING.md)

### ๐Ÿงฉ Customize It

* Modify planet data via `data-info` attributes in `index.html` ๐Ÿช
* Tweak orbit styles and animations in `index.css` ๐ŸŽจ
* Adjust theme logic and interactivity in `index.js` ๐Ÿง 

---

## ๐Ÿ–ผ๏ธ Preview





---

## ๐Ÿ“Œ Future Enhancements

* Add moons and asteroid belts ๐ŸŒ‘
* ๐Ÿ” Planetary rotation animation - animate each planet to rotate around its own axis, mimicking the natural spin observed in real celestial bodies, in addition to their orbital motion around the Sun.
* ๐ŸŽง Add interactive sound effects
* ๐Ÿช Add hover cards for each planet and the Sun
* Fix existing hover card layout (currently flows only for Neptune)
* ๐Ÿ’ซ Saturn's ring tilt โ€“ Tilt Saturnโ€™s rings by 45ยฐ to simulate a more realistic 3D appearance.
* ๐ŸŒ Add 3D depth illusion โ€“ Enhance the planetary visuals with shading and gradients to give a more spherical, three-dimensional look.
* ๐Ÿงน Refactor CSS โ€“ Use relative sizing (`max-height: 25%` for planet cards) instead of fixed pixel values for better scalability across devices.
* ๐Ÿงฎ Dynamic orbit generation โ€“ Use JavaScript to calculate orbit sizes as a percentage of the viewport or container width, eliminating the need for separate responsive rules for each device and planet.

> [!TIP]
> Wanna implement this or add something yourself? Check out [contributing.md](contributing.md).

---

## ๐Ÿช Live Demo

> [!NOTE]
> Hosted on GitHub Pages platform.
>
> [๐Ÿ”— View it live](https://madhurimarawat.github.io/Animated-Solar-System)

---

## Thanks for Visiting ๐Ÿ˜„

- Drop a ๐ŸŒŸ if you find this repository useful.


- If you have any doubts or suggestions, feel free to reach me.


๐Ÿ“ซ How to reach me: ย  [![Linkedin Badge](https://img.shields.io/badge/-madhurima-blue?style=flat&logo=Linkedin&logoColor=white)](https://www.linkedin.com/in/madhurima-rawat/) ย  ย 
Mail Illustration๐Ÿ“ซ


- **Contribute and Discuss:** Feel free to open issues ๐Ÿ›, submit pull requests ๐Ÿ› ๏ธ, or start discussions ๐Ÿ’ฌ to help improve this repository!