CSS Gas Flame Animation

Size
1,956 Kb
Views
48,576

How do I make an css gas flame animation?

This is my first attempt to pure CSS animation, the code is still a little dirty.. What is a css gas flame animation? How do you make a css gas flame animation? This script and codes were developed by Anghelos Coulon on 31 August 2022, Wednesday.

CSS Gas Flame Animation Previews

CSS Gas Flame Animation - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Gas Flame Animation</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html> <body> <div class="container"> <div class="outer flame"> <div class="inner flame"> </div> </div> </div> <div class="container"> <div class="outer flame"> <div class="inner flame"> </div> </div> </div> <div class="container"> <div class="outer flame"> <div class="inner flame"> </div> </div> </div> </body>
</html> <script src="js/index.js"></script>
</body>
</html>

CSS Gas Flame Animation - Script Codes CSS Codes

@-webkit-keyframes flame{ 0%{ border-bottom-right-radius:10px; bottom:20px; height:60%; -webkit-transform:rotate(43deg); transform:rotate(43deg); } 100%{ border-bottom-right-radius:20px; bottom:15px; height:58%; -webkit-transform:rotate(45deg); transform:rotate(45deg); }
}
@keyframes flame{ 0%{ border-bottom-right-radius:10px; bottom:20px; height:60%; -webkit-transform:rotate(43deg); transform:rotate(43deg); } 100%{ border-bottom-right-radius:20px; bottom:15px; height:58%; -webkit-transform:rotate(45deg); transform:rotate(45deg); }
}
.container{ margin:40px 0 0 40px; position:relative; width:80px; height:200px; display:inline-block;
}
.outer{ width:110px; height:110px; background-color:lightblue; -webkit-transform:rotate(45deg); transform:rotate(45deg); box-shadow:0 0 8px lightblue;
}
.inner{ width:45px; height:45px !important; background-color:pink; bottom:15px !important; -webkit-transform:rotate(0deg) !important; transform:rotate(0deg) !important; box-shadow: 0 0 8px pink;
}
.flame{ position:absolute; border-radius:0 110px 20px 110px; -webkit-animation:flame .5s alternate ease-in-out infinite; animation:flame .5s alternate ease-in-out infinite; right:15px;
}

CSS Gas Flame Animation - Script Codes JS Codes

/* Only works on firefox atm.
*/
CSS Gas Flame Animation - Script Codes
CSS Gas Flame Animation - Script Codes
Home Page Home
Developer Anghelos Coulon
Username anguo
Uploaded August 31, 2022
Rating 3
Size 1,956 Kb
Views 48,576
Do you need developer help for CSS Gas Flame Animation?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Anghelos Coulon (anguo) Script Codes
Create amazing love letters with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!