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>Sublime Shiva Animation</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="mantra-container">
<h2 class="tiro-devanagari-sanskrit-regular-italic">|| ॐ नमः शिवाय ||</h2>
<h2 class="tiro-devanagari-sanskrit-regular-italic">|| ॐ नमः शिवाय ||</h2>
</div>
<div class="shivling-container">
<div class="shivling">
<div class="first-line"></div>
<div class="second-line"></div>
<div class="red-dot"></div>
<div class="third-line"></div>
</div>
<div class="oval-stand">
<div class="block-fill"></div>
</div>
</div>
</body>
</html>
Below is the css code for this video.
style.css
@import url('https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Sanskrit:ital@1&display=swap');
* {
margin: 0;
padding: 0;
}
body {
height: 100vh;
width: 100%;
background: #0b171f;
overflow: hidden;
}
.tiro-devanagari-sanskrit-regular-italic {
font-family: "Tiro Devanagari Sanskrit", serif;
font-weight: 400;
font-style: italic;
}
.mantra-container {
position: relative;
top: 15vh;
width: 100%;
text-align: center;
}
.mantra-container h2 {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
font-size: 60px;
}
.mantra-container h2:nth-child(1) {
color: transparent;
-webkit-text-stroke: 1.5px #757b80;
}
.mantra-container h2:nth-child(2) {
color: #ebf6ff;
animation: textAnim 6s ease-in-out infinite;
}
@keyframes textAnim {
0%, 100% {
clip-path: polygon(0% 45%, 16% 44%, 33% 50%, 54% 60%, 70% 61%, 84% 59%, 100% 52%, 100% 100%, 0% 100%);
}
50% {
clip-path: polygon(0% 60%, 15% 65%, 34% 66%, 51% 62%, 67% 50%, 84% 45%, 100% 46%, 100% 100%, 0% 100%);
}
}
.shivling-container {
position: absolute;
top: 75%;
left: 50%;
height: max-content;
width: max-content;
transform: translate(-50%, -75%);
}
.shivling {
position: relative;
top: 0;
left: 50%;
height: 20px;
width: 20px;
background: #010912;
transform: translateX(-50%);
border-top: 150px solid #010912;
border-left: 100px solid #010912;
border-bottom: 150px solid #010912;
border-right: 100px solid #010912;
border-radius: 150px 150px 24px 24px;
animation: shivlingAnim 6s ease-in-out infinite;
}
@keyframes shivlingAnim {
0%, 100% {
filter: drop-shadow(24px -24px 42px #1951a8) drop-shadow(0 0 15px #0724521a);
}
50% {
filter: drop-shadow(-6px 6px 15px #1951a81a) drop-shadow(0 0 42px #072452);
}
}
.first-line, .second-line, .third-line {
position: relative;
left: -200%;
height: 10px;
width: 100px;
background: #ebf6ff;
border-radius: 10px;
}
.second-line {
top: 17%;
}
.red-dot {
position: relative;
top: -60%;
height: 10px;
width: 10px;
background: #c2242c;
border: 5px solid #c2242c;
border-radius: 50%;
z-index: 1;
}
.third-line {
top: -67%;
}
.oval-stand {
position: relative;
top: 0;
left: 0;
height: 51px;
width: 420px;
transform: translateY(-60%);
border-radius: 42%;
box-shadow: 0 78px #010912;
z-index: 1;
animation: standAnim 6s ease-in-out infinite;
}
@keyframes standAnim {
0%, 100% {
filter: drop-shadow(0 0 0 #e7edf700);
}
25%, 75% {
filter: drop-shadow(0 6px 6px #e7edf71a);
}
50% {
filter: drop-shadow(0 0 15px #e7edf740);
}
}
.block-fill {
position: relative;
top: 24%;
left: 0;
height: 78px;
width: 420px;
background: #010912;
border-radius: 33px 33px 150px 150px;
animation: blockFillAnim 6s ease-in-out infinite;
}
@keyframes blockFillAnim {
0%, 100% {
filter: drop-shadow(0 9.6px 9.6px #e7edf71a);
}
50% {
filter: drop-shadow(0 3.3px 3.3px #e7edf71a);
}
}
Thanks for visiting