<div class="container">
<div class="flame-wrapper">
<div class="flame red"></div>
<div class="flame orange"></div>
<div class="flame gold"></div>
<div class="flame white"></div>
<div class="base blue"></div>
<div class="base black"></div>
</div>
<div class="source">
<a href="https://redstapler.co/easy-realistic-css-fire-effect/">source RED STAPLER</a>
</div>
</div>
body {
background-color: black;
color: #fff;
}
.container {
display: flex;
min-height: 100vh;
flex-direction: column;
}
.source {
text-align: right;
width: 100%;
}
.source a {
color: #c2c2c2;
font-size: .7rem;
text-decoration: none;
}
.red {
width: 80px;
height: 80px;
background: orangered;
box-shadow: 0px 0px 10px 5px orangered;
}
.orange {
width: 60px;
height: 60px;
left: 10px;
background: orange;
box-shadow: 0px 0px 12px 6px orange;
}
.gold {
width: 45px;
height: 45px;
background: gold;
left:18px;
box-shadow: 0px 0px 9px 4px gold;
}
.white {
width: 35px;
height: 35px;
background: lightyellow;
left:23px;
box-shadow: 0px 0px 9px 4px lightyellow;
}
.blue {
width: 15px;
height: 15px;
background: darkblue;
left: 32px;
box-shadow: 0px 0px 15px 10px darkblue;
}
.black {
width: 40px;
height: 40px;
background: black;
bottom: -50px;
left: 20px;
box-shadow: 0px 0px 15px 10px black;
}
.base {
border-radius: 50%;
position: absolute;
}
.flame-wrapper {
position: relative;
margin: auto;
animation: flicker .1s ease-in infinite;
}
.flame {
bottom: 0;
position: absolute;
border-radius: 50% 0% 50% 50%;
transform: rotate(-45deg);
}
@keyframes flicker {
0% {transform: rotate(-1deg);}
20% {transform: rotate(2deg) scaleY(1.05);}
40% {transform: rotate(-1deg);}
60% {transform: rotate(1deg);}
80% {transform: rotate(-1deg) scaleY(0.90);}
100% {transform: rotate(1deg);}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.