Solar.css

April 15, 2020 ยท View on GitHub

Pure CSS Solar System Animation

Exploration

  • Solar system: The planets, objects and orbits around the Sun are illustrated by pure CSS at scale for their relative sizes.
  • Distances to the Sun are mathematically scaled and positioned for ideal view.
  • Animation durations are timely scaled relative to the Earth year by true sidereal periods. One Earth year in the animation is 10 seconds.
  • The Asteroid belt is generated with pure CSS.
  • Solar System in 3D Mode.
  • Some fun micro-animations.

If you enjoy it, please consider donating via Paypal or Buy me a coffee.

Data

ObjectRadius (km)Sidereal Period (yr)Distance to the Sun (km)
Sun696000--
Mercury24400.24084657909000
Venus60520.615108160000
Earth63711149600000
Mars33901.881227990000
Jupiter6991111.86778360000
Saturn5823229.461433500000
Uranus2536284.012872400000
Neptune24622164.84498400000
Moon (Earth)17370.0748-

Data sources