r/learnjavascript • • May 01 '19

Solar system simulation using JavaScript

262 Upvotes

22 comments sorted by

View all comments

4

u/[deleted] May 02 '19 edited May 02 '19

Here's the same thing without any JavaScript at all, just CSS:

https://jsfiddle.net/k1rzxumv/

Oh and the planets rotate too. =)

1

u/j_sidharta May 02 '19

I didn't think you could do something like this without js. Amazing!