Animated fire extinguisher
How do I make an animated fire extinguisher?
Quick and dirty fire extinguisher animation using font-awesome icons. What is a animated fire extinguisher? How do you make a animated fire extinguisher? This script and codes were developed by Adrian Payne on 18 August 2022, Thursday.
Animated fire extinguisher - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Animated fire extinguisher</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css'> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ body { background: #fefefe;
}
.container { width: 30px; height: 30px; margin: 50px auto 0 auto; position: relative;
}
.extinguish { cursor: pointer; font-size: 30px; color: firebrick; width: 30px; height: 30px; text-align: center; transition: transform 150ms ease-out; vertical-align: top;
}
.extinguish:hover { transform-origin: 50% 50%; transform: rotateZ(20deg);
}
.extinguish:active { font-size: 28px;
}
.smoke { color: #999; transition: all 120ms ease-out; transform-origin: 50% 50%; transform: rotateY(-180deg) rotateZ(-34deg); position: absolute; top: 4px; left: 28px; opacity: 0;
}
.spray { animation-name: spray; animation-duration: 0.6s; animation-timing-function: ease-out;
}
@keyframes spray { 0% { top: 2px; left: 25px; } 30% { top: 5px; left: 31px; opacity: 1; } 60% { opacity: 1; } 100% { top: 6px; left: 34px; opacity: 0; }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="container"> <i class="fa fa-fire-extinguisher extinguish"></i> <i class="fa fa-cloud fa-flip-horizontal smoke"></i>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Animated fire extinguisher - Script Codes CSS Codes
body { background: #fefefe;
}
.container { width: 30px; height: 30px; margin: 50px auto 0 auto; position: relative;
}
.extinguish { cursor: pointer; font-size: 30px; color: firebrick; width: 30px; height: 30px; text-align: center; transition: transform 150ms ease-out; vertical-align: top;
}
.extinguish:hover { transform-origin: 50% 50%; transform: rotateZ(20deg);
}
.extinguish:active { font-size: 28px;
}
.smoke { color: #999; transition: all 120ms ease-out; transform-origin: 50% 50%; transform: rotateY(-180deg) rotateZ(-34deg); position: absolute; top: 4px; left: 28px; opacity: 0;
}
.spray { animation-name: spray; animation-duration: 0.6s; animation-timing-function: ease-out;
}
@keyframes spray { 0% { top: 2px; left: 25px; } 30% { top: 5px; left: 31px; opacity: 1; } 60% { opacity: 1; } 100% { top: 6px; left: 34px; opacity: 0; }
}
Animated fire extinguisher - Script Codes JS Codes
var extinguisher = $('.extinguish'), smoke = $('.smoke');
extinguisher.on("mousedown",function() { smoke.addClass('spray'); smoke.one('webkitAnimationEnd oanimationend msAnimationEnd animationend', function(e) { smoke.removeClass('spray'); });
});
Developer | Adrian Payne |
Username | dazulu |
Uploaded | August 18, 2022 |
Rating | 3 |
Size | 3,223 Kb |
Views | 50,600 |
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 |
CSS Flame Animation | 2,927 Kb |
CSS Shop Icon | 3,260 Kb |
CSS Ribbons | 2,322 Kb |
CSS modal slide up animation with FB-ish zoom on scroll | 5,349 Kb |
Code Against Humanity | 3,088 Kb |
CSS butterfly | 4,053 Kb |
Tile Game | 6,146 Kb |
A Pen by Adrian Payne | 2,652 Kb |
CSS 3D Rotate | 3,154 Kb |
Pure CSS RSS Icon | 3,063 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 |
HTM5 picture dropzone | Jaysalvat | 2,576 Kb |
CSS Gem Badge | Orchard | 3,335 Kb |
A simple log in form made with css | Mayurelbhar | 2,160 Kb |
Drill-down Map | Good886 | 8,484 Kb |
Bootstrap 4 Gridsystem Demo | Rivella50 | 1,535 Kb |
Ball bouncing loading animation | Adam2326 | 3,144 Kb |
Sass Get Function | Lukewatts | 2,155 Kb |
Social buttons | Flacu | 2,022 Kb |
A Pen by Adrien Clerbois | AClerbois | 6,501 Kb |
Twinkling Stars | Ripley6811 | 2,750 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!