Blue Flames
HTML
<div class="fire">
<div class="flames">
<div class="flame"></div>
<div class="flame"></div>
<div class="flame"></div>
<div class="flame"></div>
</div>
<div class="logs"></div>
</div>
CSS
body {
background-color: #111217;
}
body .fire {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -25%);
transform: translate(-50%, -25%);
height: 20vw;
width: 20vw;
}
body .fire .flames {
position: absolute;
bottom: 40%;
left: 50%;
width: 60%;
height: 60%;
-webkit-transform: translateX(-50%) rotate(45deg);
transform: translateX(-50%) rotate(45deg);
}
body .fire .flames .flame {
position: absolute;
right: 0%;
bottom: 0%;
width: 0%;
height: 0%;
background-color: #FFDC01;
border-radius: 1vw;
}
body .fire .flames .flame:nth-child(2n + 1) {
-webkit-animation: flameodd 1.5s ease-in infinite;
animation: flameodd 1.5s ease-in infinite;
}
body .fire .flames .flame:nth-child(2n) {
-webkit-animation: flameeven 1.5s ease-in infinite;
animation: flameeven 1.5s ease-in infinite;
}
body .fire .flames .flame:nth-child(1) {
-webkit-animation-delay: 0s;
animation-delay: 0s;
}
body .fire .flames .flame:nth-child(2) {
-webkit-animation-delay: 0.375s;
animation-delay: 0.375s;
}
body .fire .flames .flame:nth-child(3) {
-webkit-animation-delay: 0.75s;
animation-delay: 0.75s;
}
body .fire .flames .flame:nth-child(4) {
-webkit-animation-delay: 1.125s;
animation-delay: 1.125s;
}
body .fire .logs {
position: absolute;
bottom: 25%;
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
width: 100%;
height: 15%;
}
body .fire .logs:before, body .fire .logs:after {
position: absolute;
content: '';
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%) rotate(20deg);
transform: translate(-50%, -50%) rotate(20deg);
height: 100%;
width: 100%;
border-radius: 1vw;
background-color: #70392F;
}
body .fire .logs:before {
-webkit-transform: translate(-50%, -50%) rotate(-20deg);
transform: translate(-50%, -50%) rotate(-20deg);
background-color:...