Solar System Animation | HTML CSS

preview_player
Показать описание
In this video we will learn how to create a captivating representation of the Sun, Earth, and Moon using HTML and CSS.

🌌 Unleash Your Coding Skills with this Solar System Animation! 🚀

Dive into the world of web development as you build an interactive model of our cosmic neighborhood. Watch the Earth elegantly orbit around the Sun, and the Moon gracefully dance around our blue planet. Master key animation concepts and HTML/CSS techniques to bring this celestial spectacle to life. Embark on this coding journey and gain a deeper understanding of web animation and frontend development. 🌍🌕 #HTMLCSS #WebDevelopment #Animation #SolarSystem #CodingJourney #FrontendDevelopment #LearnToCode

Your Queries:

solar system animation html css
solar system animation using html and css
solar system html css javascript animation
solar system of galaxy animation pure css and html
solar system animation html and css
css animation solar system
solar system html css
html solar system
html solar system animation
3d rotation of solar system
Рекомендации по теме
Комментарии
Автор

<html>
<head>
<title>Solar system</title>
<style>
body {
margin: 0;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: #000;
overflow: hidden;
}
.container {
font-size: 10px;
width: 40em;
height: 40em;
position: relative;
}
.sun {
position: absolute;
width: 15em;
height: 15em;
top: 12.5em;
left: 12.5em;
background-color: #ffcc00;
border-radius: 50%;
box-shadow: 0 0 3em white;
}
.earth,
.moon {
position: absolute;
border-style: solid;
border-color: white transparent transparent transparent;
border-width: 0.1em 0.1em 0 0;
border-radius: 50%;
}
.earth {
top: 5em;
left: 5em;
width: 30em;
height: 30em;
animation: orbit 36.5s linear infinite;
}
.moon {
top: 0;
right: 0;
width: 8em;
height: 8em;
animation: orbit 2.7s linear infinite;
}
.earth::before, .moon::before {
content: '';
position: absolute;
border-radius: 50%;
}
.earth::before {
top: 2.8em;
right: 2.8em;
width: 3em;
height: 3em;
background-color: #72cdfa;
}
.moon::before {
top: 0.8em;
right: 0.2em;
width: 1.2em;
height: 1.2em;
background-color: #ccc;
}
@keyframes orbit {
to {
transform: rotate(360deg);
}
}
</style>
</head>
<body>
<header>
<div class="container">
<div class="sun"></div>
<div class="earth">
<div class="moon"></div>
</div>
</div>
<br><br><br>
<center><h1 style="color: white;">SOLAR SYSTEM</h1></center>
</header>
</body>
</html>

SkAptab-py
Автор

सरजी नमस्ते, मैने आपका यह Solar System Animation | HTML CSS प्रोग्राम टाईप करके देखा तो सही तरह से रन हुआ | कुच्छ प्रोब्लेम आये मगर सोल हो गये | ऐसे ही प्रोग्राम बनते रहो | धन्यवाद सर |

Автор

can you please describe how you made a trail of orbit

MBilal-lymc
Автор

But not working bro
Can please do Assist

meherabhossain
Автор

App name kya hai. Bro coding kis mai karta ho

writes_
Автор

my output is well but not show the earth please Solve it

tharindux_x
visit shbcf.ru