The content on this website, including videos and code examples, is for educational purposes only. All demonstrations and designs are fictional and created to illustrate coding techniques. Any resemblance to existing websites or brands is purely coincidental.
The creators and administrators of this website do not claim ownership or affiliation with any existing websites or companies. Users are encouraged to use the information responsibly for learning purposes. Liability for any misuse of the content provided is not accepted.
Below is the html code for this video.
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Crafting a World Beyond the Sky</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="star star-1"></div>
<div class="star star-2"></div>
<div class="star star-3"></div>
<div class="orbitary orbit-1"></div>
<div class="orbitary orbit-2"></div>
<div class="orbitary orbit-3"></div>
<div class="orbitary orbit-4"></div>
<div class="orbitary orbit-5"></div>
<div class="orbitary orbit-6"></div>
<div class="ring-before"></div>
<div class="ring-bigger-before"></div>
<div class="planet"></div>
<div class="ring-after"></div>
<div class="ring-bigger-after"></div>
</div>
</body>
</html>
Below is the css code for this video.
style.css
* {
margin: 0;
padding: 0;
}
body {
display: flex;
height: 100vh;
width: 100%;
background: #222222;
justify-content: center;
align-items: center;
overflow: hidden;
}
.container {
position: relative;
height: 600px;
width: 600px;
background: linear-gradient(-45deg, #0f193b, #202c54, #353f62);
background-size: 400% 400%;
border-radius: 50%;
box-shadow: 0 0 40px #0000004d, inset 0 0 0 30px #0000000d, inset 0 0 0 60px #0000000d,
inset 0 0 0 90px #0000000d, inset 0 0 0 120px #0000000d, inset 0 0 0 150px #0000000d;
animation: beyondSkyAnim 15s ease infinite;
overflow: hidden;
}
@keyframes beyondSkyAnim {
0%, 100% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
}
.planet {
position: absolute;
top: 50%;
left: 50%;
height: 240px;
width: 240px;
transform: rotate(-15deg) translate(-35%, -55%);
background: linear-gradient(to bottom, #c5ab6e, #ead6b8, #c5ab6e);
border-radius: 50%;
z-index: 2;
}
.ring-before, .ring-bigger-before, .ring-after, .ring-bigger-after {
position: absolute;
top: 250px;
left: 168px;
transform: skew(-54deg);
height: 84px;
width: 252px;
border: 6px solid #ffe1abbf;
border-radius: 50%;
}
.ring-bigger-before, .ring-bigger-after {
transform: skew(-54deg) scale(1.25);
border-color: #d8ae6d;
}
.ring-before, .ring-bigger-before {
z-index: 3;
clip-path: inset(50% 0 0 0);
}
.ring-after, .ring-bigger-after {
z-index: 1;
clip-path: inset(0 0 50% 0);
}
.orbitary {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: 4px;
width: 4px;
background: #ffffff;
border-radius: 50%;
z-index: 9;
}
.orbit-1 {
animation: orbit1Anim 1s linear infinite;
}
@keyframes orbit1Anim {
from {
transform: rotate(0deg) translateX(130px);
}
to {
transform: rotate(360deg) translateX(130px);
}
}
.orbit-2 {
animation: orbit2Anim 2s linear infinite;
}
@keyframes orbit2Anim {
from {
transform: rotate(0deg) translateX(160px);
}
to {
transform: rotate(360deg) translateX(160px);
}
}
.orbit-3 {
animation: orbit3Anim 3s linear infinite;
}
@keyframes orbit3Anim {
from {
transform: rotate(0deg) translateX(190px);
}
to {
transform: rotate(360deg) translateX(190px);
}
}
.orbit-4 {
animation: orbit4Anim 4s linear infinite;
}
@keyframes orbit4Anim {
from {
transform: rotate(0deg) translateX(220px);
}
to {
transform: rotate(360deg) translateX(220px);
}
}
.orbit-5 {
animation: orbit5Anim 5s linear infinite;
}
@keyframes orbit5Anim {
from {
transform: rotate(0deg) translateX(250px);
}
to {
transform: rotate(360deg) translateX(250px);
}
}
.orbit-6 {
animation: orbit6Anim 6s linear infinite;
}
@keyframes orbit6Anim {
from {
transform: rotate(0deg) translateX(280px);
}
to {
transform: rotate(360deg) translateX(280px);
}
}
.star {
position: absolute;
top: 100px;
left: 0;
height: 2px;
width: 2px;
background: #ffffff;
animation: shootingStarAnim 4s linear infinite;
}
@keyframes shootingStarAnim {
from {
left: -200px;
}
to {
left: calc(100% + 200px);
}
}
.star::before {
content: "";
position: absolute;
top: 0;
right: 2px;
height: 2px;
width: 200px;
background: linear-gradient(to right, transparent, #ffffff80);
}
.star-2 {
top: 200px;
animation: shootingStarAnim 8s 1s linear infinite;
}
.star-3 {
top: 500px;
animation: shootingStarAnim 4s 2s linear infinite;
}
Thanks for visiting