Solar system made with HTML, CSS and pure Javascript
Code ready for you to run in your browser.
Hail, guys! The other day I saw a cool tutorial on Youtube and saved it to my favorites to check it out later. And other day I finished my daily tasks a little earlier and decided to watch and play the video content.
It is the Solar System made with HTML, CSS and pure Javascript!
Although the author of the video did not provide the files and the code, he made a point of stressing the entire procedure in the video, showing the logic of the calculations by written messages.
At the end of this post there is the video and you will notice that you need to have an advanced knowledge of Mathematics more precisely of Geometry:
Sine
Cosine
Radian
I did and I will make the files available right here, there are 3 files (code):
index.html
main.css
script.js
The images (I selected on several internet sites and I don’t remember the addresses) are right at the end of the code, you can save as in the same directory where you will create/save the code. I did it that way because the author released a “disclaimer” and I didn’t understand it very well. So, in order not to belittle the codeTonight work in addition to posting his video, the files will be made available separately.
Here are the codes:
Create a folder named example: solarsystem, mkdir solarsystem. And save all files, including images inside that folder.