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 http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Happy Makar Sankranti</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="cloud-container">
<div class="cloud1">
<div class="cloud"></div>
</div>
<div class="cloud2">
<div class="cloud"></div>
</div>
<div class="cloud3">
<div class="cloud"></div>
</div>
<div class="cloud4">
<div class="cloud"></div>
</div>
<div class="cloud5">
<div class="cloud"></div>
</div>
</div>
<div class="kite1">
<div class="kite-tail"></div>
</div>
<div class="kite2">
<div class="kite-tail"></div>
</div>
<div class="wish">
<h1>Happy Makar Sankranti</h1>
</div>
</body>
</html>
Below is the css code for this video.
style.css
* {
margin: 0;
padding: 0;
}
body {
height: 100vh;
width: 100%;
background-color: #87ceeb;
overflow: hidden;
}
.cloud-container {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
padding-top: 33px;
z-index: -2;
}
.cloud {
position: relative;
height: 120px;
width: 350px;
background: linear-gradient(to bottom, #f4fafc, #f0f5d8);
border-radius: 100px;
box-shadow: 0 8px 4px #00000040;
}
.cloud::after, .cloud::before {
content: "";
position: absolute;
background-color: #f4fafc;
z-index: -1;
}
.cloud::after {
top: -50px;
left: 50px;
height: 100px;
width: 100px;
border-radius: 50%;
}
.cloud::before {
top: -90px;
right: 50px;
height: 180px;
width: 180px;
border-radius: 50%;
}
.cloud1 {
transform: scale(0.5);
animation: movingCloudAnim 7s linear infinite;
}
.cloud2 {
transform: scale(0.25);
animation: movingCloudAnim 4s linear infinite;
}
.cloud3 {
transform: scale(0.5);
animation: movingCloudAnim 6s linear infinite;
}
.cloud4 {
transform: scale(0.25);
animation: movingCloudAnim 3s linear infinite;
}
.cloud5 {
transform: scale(0.5);
animation: movingCloudAnim 5s linear infinite;
}
@keyframes movingCloudAnim {
from {
margin-left: -100%;
}
to {
margin-left: 100%;
}
}
.kite1, .kite2 {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
height: 100px;
width: 100px;
margin: auto;
transform: rotate(45deg);
}
.kite1 {
background: radial-gradient(#fff44f, #ff2301);
animation: kiteFlyingAnim1 5s ease-in-out infinite;
}
@keyframes kiteFlyingAnim1 {
0%, 100% {
top: 0;
left: 0;
}
33% {
top: -25%;
left: -25%;
}
67% {
top: -25%;
left: 25%;
}
}
.kite1::after, .kite1::before, .kite2::after, .kite2::before {
content: "";
position: absolute;
}
.kite1::before, .kite2::before {
top: 50%;
left: -20%;
width: 141%;
border-top: 1px solid #000000;
transform: rotate(45deg);
}
.kite2::before {
border-top: 1px solid #ffffff;
}
.kite1::after, .kite2::after {
top: 0;
left: 0;
height: 100px;
width: 100px;
border-top: 1px solid #000000;
border-left: 1px solid #000000;
border-top-left-radius: 100%;
}
.kite2::after {
border-top: 1px solid #ffffff;
border-left: 1px solid #ffffff;
}
.kite2 {
background: linear-gradient(-45deg, #ff2301, #fff44f);
animation: kiteFlyingAnim2 5s ease-in-out infinite;
}
@keyframes kiteFlyingAnim2 {
0%, 100% {
top: 0;
left: 0;
}
33% {
top: 25%;
left: 25%;
}
67% {
top: 25%;
left: -25%;
}
}
.kite-tail {
position: relative;
top: 95px;
left: 85px;
height: 0;
width: 0;
background: transparent;
transform: rotate(-45deg);
border-left: 20px solid transparent;
border-bottom: 20px solid #000000;
border-right: 20px solid transparent;
overflow: hidden;
}
.wish {
position: absolute;
bottom: 0;
width: 100%;
background: transparent;
z-index: -1;
}
.wish h1 {
font-family: sans-serif;
font-weight: 600;
font-size: calc(36px + 1vw);
color: #ffffff;
text-align: center;
text-transform: uppercase;
letter-spacing: 2.5px;
text-shadow: 1px 1px 0 #87ceeb, 2px 2px 0 #00c0f0, 3px 3px 0 #87ceeb, 4px 4px 0 #00b5e2, 5px 5px 0 #87ceeb,
6px 6px 0 #00a1c9, 7px 7px 0 #87ceeb, 8px 8px 0 #0083a3, 9px 9px 0 #87ceeb, 10px 10px 0 #005063;
margin-bottom: 25px;
}
Thanks for visiting