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>International Yoga Day</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h3>International</h3>
<h1>Yoga</h1>
<h2>Day</h2>
<div class="floor"></div>
<div class="girl">
<div class="face"></div>
<div class="face-part"></div>
<div class="body-top"></div>
<div class="body-bottom"></div>
<div class="air"></div>
<div class="neck"></div>
<div class="top"></div>
<div class="hand-1"></div>
<div class="hand-2"></div>
<div class="leg-1"></div>
<div class="leg-2"></div>
<div class="hair hair-1"></div>
<div class="hair hair-2"></div>
<div class="mat"></div>
</div>
</body>
</html>
Below is the css code for this video.
style.css
@import url('https://fonts.googleapis.com/css2?family=Cute+Font&display=swap');
* {
margin: 0;
padding: 0;
}
body {
height: 100vh;
width: 100%;
background: #b18686;
overflow: hidden;
}
h1, h2, h3 {
position: absolute;
top: 33%;
font-size: 8.2vw;
font-family: 'Cute Font', cursive;
letter-spacing: 5.5px;
color: #ffe5ab;
animation: shadowAnim 5.5s ease-in-out infinite;
}
@keyframes shadowAnim {
0%, 100% {
text-shadow: 2.5px 2.5px 0 #0072bb, 5px 5px 0 #9b8de4, 7.5px 7.5px 0 #8bc488, 10px 10px 0 #fdf2a0, 12.5px 12.5px 0 #ffa2d4;
}
50% {
text-shadow: 0 0 0 #000000;
}
}
h1 {
left: 65%;
transform: translate(-65%, -50%);
}
h2 {
left: 82.5%;
transform: translate(-82.5%, -50%);
}
h3 {
left: 12.5%;
transform: translate(-12.5%, -50%);
}
.floor {
position: absolute;
top: calc(100% - 150px);
left: 0;
bottom: -1000px;
right: 0;
background: linear-gradient(135deg, #228b22 22px, #9af764 22px, #9af764 24px, transparent 24px, transparent 67px, #9af764 67px,
#9af764 69px, transparent 69px), linear-gradient(225deg, #228b22 22px, #9af764 22px, #9af764 24px, transparent 24px,
transparent 67px, #9af764 67px, #9af764 69px, transparent 69px) 0 64px;
background-size: 64px 128px;
background-color: #228b22;
transform: scaleY(0.25);
transform-origin: top;
box-shadow: inset 0 0 63px 5px #00000040;
}
.girl {
position: absolute;
left: calc(50% - 150px);
bottom: calc(150px - 50px);
height: 300px;
width: 300px;
}
.face {
position: absolute;
top: 150px;
left: -3px;
height: 32px;
width: 45px;
background: #edd1c2;
border-radius: 80% 29%;
z-index: 55;
}
.neck {
position: absolute;
top: 158px;
left: 41px;
height: 32px;
width: 11px;
background: #edd1c2;
transform: rotate(73deg);
border-radius: 10px;
z-index: 60;
}
.top {
position: absolute;
top: 127px;
left: 55px;
height: 55px;
width: 37px;
background: #0047ab;
transform: rotate(142deg);
border-radius: 20px;
z-index: 55;
}
.face-part {
position: absolute;
top: 146px;
left: -6px;
height: 30px;
width: 51px;
border-bottom: 31px solid #2c1608;
border-radius: 100%;
z-index: 60;
}
.face-part::after {
content: "";
position: absolute;
top: 15px;
left: -10px;
height: 17px;
width: 36px;
background: #2c1608;
transform: rotate(-61deg);
border-radius: 20px 0/20px 0;
}
.face-part::before {
content: "";
position: absolute;
top: 27px;
left: 28px;
height: 17px;
width: 15px;
background: #edd1c2;
border-radius: 80%;
z-index: 55;
}
.hair {
position: absolute;
top: 157px;
left: -6px;
height: 50px;
width: 50px;
background: #2c1608;
border-radius: 100%;
z-index: 50;
}
.hair::after {
content: "";
position: absolute;
top: 40px;
left: 20px;
height: 19px;
width: 14px;
background: #0047ab;
transform: rotate(14deg);
border-radius: 33px 0/18px 0;
}
.hair::before {
content: "";
position: absolute;
top: 54px;
left: -15px;
height: 57px;
width: 44px;
background: #2c1608;
border-radius: 72px 0/58px 52px;
transform: rotate(-21deg);
transform-origin: top right;
}
.body-top {
position: absolute;
top: 120px;
left: 64px;
height: 63px;
width: 38px;
z-index: 30;
}
.body-top::before {
content: "";
position: absolute;
top: -12px;
left: -15px;
width: 113px;
transform: rotate(-29deg);
border-radius: 100%;
border: 0 solid transparent;
border-top: 78px solid #edd1c2;
}
.body-bottom {
position: absolute;
top: 109px;
left: 127px;
height: 50px;
width: 50px;
background: #0059d6;
border-radius: 100%;
z-index: 70;
}
.body-bottom::after {
content: "";
position: absolute;
top: -4px;
left: -7px;
height: 42px;
width: 23px;
background: #edd1c2;
transform: rotate(13deg);
border-radius: 39px;
}
.air {
position: absolute;
top: 147px;
left: 78px;
height: 100px;
width: 100px;
background: #b18686;
border-radius: 100%;
z-index: 60;
}
.air::after {
content: "";
position: absolute;
top: -290px;
left: 60px;
height: 255px;
width: 19px;
background: #b18686;
transform: rotate(3deg);
border-radius: 100%;
}
.hand-1 {
position: absolute;
top: 162px;
left: 59px;
height: 73px;
width: 18px;
background: #edd1c2;
transform: rotate(14deg);
border-radius: 100%;
z-index: 70;
}
.hand-1::before {
content: "";
position: absolute;
top: -16px;
left: 1px;
height: 79px;
width: 15px;
background: #edd1c2;
border-radius: 100%;
transform: rotate(-194deg);
transform-origin: bottom center;
z-index: 70;
}
.hand-1::after {
content: "";
position: absolute;
top: 120px;
left: 24px;
height: 10px;
width: 30px;
background: #edd1c2;
border-radius: 100%;
transform: rotate(-194deg);
transform-origin: bottom center;
z-index: 70;
}
.hand-2 {
position: absolute;
top: 157px;
left: 40px;
height: 73px;
width: 18px;
background: #e7c8b6;
transform: rotate(21deg);
border-radius: 100%;
z-index: 25;
}
.hand-2::before {
content: "";
position: absolute;
top: -16px;
left: 0;
height: 72px;
width: 15px;
background: #e7c8b6;
border-radius: 100%;
transform: rotate(-190deg);
transform-origin: bottom center;
}
.hand-2::after {
content: "";
position: absolute;
top: 106px;
left: 15px;
height: 10px;
width: 30px;
background: #e7c8b6;
border-radius: 100%;
transform: rotate(-200deg);
transform-origin: bottom center;
z-index: 70;
}
.leg-1 {
position: absolute;
top: 3px;
left: 142px;
height: 140px;
width: 41px;
background: #003989;
border-radius: 100%;
transform: rotate(-177deg);
z-index: 0;
}
.leg-1::before {
content: "";
position: absolute;
top: -14px;
left: 1px;
height: 125px;
width: 34px;
background: #003989;
border-radius: 42%;
transform: rotate(-187deg);
transform-origin: bottom center;
}
.leg-1::after {
content: "";
position: absolute;
top: 223px;
left: 24px;
height: 39px;
width: 15px;
background: #e7c8b6;
border-radius: 42%;
transform: rotate(-10deg);
transform-origin: bottom center;
}
.leg-2 {
position: absolute;
top: 91px;
left: 177px;
height: 137px;
width: 41px;
background: #0059d6;
border-radius: 100%;
transform: rotate(-49deg);
z-index: 100;
}
.leg-2::before {
content: "";
position: absolute;
top: -1px;
left: 20px;
height: 119px;
width: 22px;
background: #0059d6;
border-radius: 42%;
transform: rotate(-134deg);
transform-origin: bottom center;
}
.leg-2::after {
content: "";
position: absolute;
top: 193px;
left: -52px;
height: 36px;
width: 15px;
background: #edd1c2;
border-radius: 42%;
transform: rotate(-10deg);
transform-origin: bottom center;
}
.mat {
position: absolute;
top: 237px;
left: 53px;
height: 134px;
width: 203px;
background: #483d8b;
transform: rotate(18deg) skewX(-71deg);
box-shadow: 0 0 12px 20px #00000040;
z-index: 20;
}
Thanks for visiting