CSS Gas Flame Animation
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 - 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.
*/
Developer | Anghelos Coulon |
Username | anguo |
Uploaded | August 31, 2022 |
Rating | 3 |
Size | 1,956 Kb |
Views | 48,576 |
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!
Name | Size |
Lemon | 4,621 Kb |
Salt Shaker CSS-Animated SVG | 4,125 Kb |
Donate Button With CSS Animated God Rays | 2,561 Kb |
Pistachio pattern | 2,502 Kb |
Night reading mode | 3,048 Kb |
Simple always-visible comment indicator | 3,250 Kb |
Sheji | 2,287 Kb |
Ripple | 2,093 Kb |
Pistachio skin remover machine, animated SVG | 12,670 Kb |
Pure CSS Giftbox | 2,082 Kb |
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!
Name | Username | Size |
Preloader | Rikki_Sixx | 2,815 Kb |
Slick Slider | Wearebold | 5,913 Kb |
Project_one | MOHIM | 9,592 Kb |
Horizontal scroll fixed element | HerrSerker | 0 Kb |
SVG Transform vs CSS Transform | AmeliaBR | 4,175 Kb |
Canvas stripes | Adrianparr | 1,948 Kb |
Fullscreen audio play button | 72 | 2,148 Kb |
Bootstrap Responsive Menu Drawer | JesseGlacken | 3,777 Kb |
Weather App | OmranAbazid | 2,596 Kb |
Minimal Material Design Form Input | Koenigsegg1 | 3,076 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!