<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Diya Animation</title>
<!-- Stylesheet -->
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h3 class="diwali">May this auspicious occasion light up your life with happiness, joy and peace. Shubh Diwali</h3>
<div class="container">
<div class="shadow"></div>
<div class="diya">
<div class="line-1"></div>
<div class="line-2"></div>
<div class="dots"></div>
</div>
<div class="inside">
<div class="light"></div>
<div class="flame"></div>
</div>
</div>
<footer> Made by Prabhave</footer>
</body>
</html>
@import url('https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap');
*,
*:before,
*:after {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
height: 100vh;
background: linear-gradient(#190547 60%, #6031c0 60%);
}
.container {
height: 500px;
width: 500px;
position: absolute;
transform: translate(-50%, -50%);
/* top: 50%; */
margin: 19%;
/* -webkit-box-reflect: below 4px linear-gradient(transparent 30%, rgba(0,0,0,0.35)); */
padding-bottom: 20%;
/* left: 50%; */
}
.diwali{
color: white;
top: 50%;
position: absolute;
left: 34%;
font-family: 'Zen Kurenaido', sans-serif;
font-weight: lighter;
font-size: 30px;
}
.diya {
height: 150px;
width: 300px;
background-color: #fdcf0f;
border-radius: 0 0 150px 150px;
position: absolute;
margin: auto;
left: 0;
right: 0;
bottom: 50px;
overflow: hidden;
}
.inside {
width: 300px;
height: 60px;
background-color: #fd500a;
border-radius: 50%;
position: absolute;
margin: auto;
left: 0;
right: 0;
bottom: 170px;
}
.shadow {
height: 60px;
width: 320px;
background-color: rgba(25, 5, 71, 0.5);
position: absolute;
bottom: 30px;
border-radius: 50%;
margin: auto;
left: 0;
right: 0;
}
.flame {
height: 170px;
width: 170px;
background-color: #fdf1c2;
border-radius: 160px 0;
transform: rotate(-45deg);
position: absolute;
margin: auto;
left: 0;
right: 0;
bottom: 36px;
animation: scale-up 2s infinite;
}
@keyframes scale-up {
50% {
transform: rotate(-45deg) scale(1.05);
bottom: 42px;
}
}
.flame:after {
content: "";
position: absolute;
height: 120px;
width: 120px;
background-color: #f4c631;
border-radius: 120px 0;
position: absolute;
bottom: 0;
}
.light {
height: 330px;
width: 330px;
background-color: rgba(253, 241, 194, 0.2);
border-radius: 50%;
position: absolute;
left: -15px;
bottom: 0;
}
.light:before,
.light:after {
content: "";
position: absolute;
height: 120px;
width: 120px;
background-color: rgba(253, 241, 194, 0.3);
border-radius: 50%;
animation: shine 5s linear infinite;
}
@keyframes shine {
50% {
transform: scale(0.7);
opacity: 0.2;
}
}
.light:before {
bottom: 30px;
right: 60px;
}
.light:after {
top: 50px;
left: 80px;
animation-delay: 1s;
}
.line-1,
.line-2 {
position: absolute;
height: 60px;
width: 320px;
border: none;
border-bottom: 8px solid #ffffff;
border-radius: 50%;
left: -10px;
}
.line-2 {
top: 60px;
}
.dots {
height: 60px;
width: 320px;
border: none;
border-bottom: 10px dotted #fd500a;
position: absolute;
border-radius: 50%;
top: 30px;
left: -10px;
}
footer{
position: fixed;
bottom: 4px;
text-align: center;
color: white;
width: 100%;
margin: 0 auto;
font-size: 30px;
font-family: 'Zen Kurenaido', sans-serif;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.