CSS3 Spritesheet Fireworks Animation
How do I make an css3 spritesheet fireworks animation?
This match animation is a part of the Happy New Year GreenSock SVG Animation by Petr Tichy.Check out the whole animation:. What is a css3 spritesheet fireworks animation? How do you make a css3 spritesheet fireworks animation? This script and codes were developed by Petr Tichy on 07 September 2022, Wednesday.
CSS3 Spritesheet Fireworks Animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS3 Spritesheet Fireworks Animation</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="largeF is-animating"></div>
<button id="playBtn">Toggle</button>
<a href="https://ihatetomatoes.net/happy-new-year/" target="_blank" class="goToDemo">View full demo</a> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
CSS3 Spritesheet Fireworks Animation - Script Codes CSS Codes
body { background-color: #212121;
}
.largeF { width: 150px; height: 150px; position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/107366/img_fireworks-frames-white.png") no-repeat top left; opacity: 0;
}
.largeF.is-animating { opacity: 1; -webkit-animation: fire 1s steps(21, end) 0s 5; animation: fire 1s steps(21, end) 0s 5;
}
@-webkit-keyframes fire { 0% { opacity: 1; background-position: 0 0; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); } 90% { opacity: 0.8; } 100% { opacity: 0; background-position: -3150px 0; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }
}
@keyframes fire { 0% { opacity: 1; background-position: 0 0; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); } 90% { opacity: 0.8; } 100% { opacity: 0; background-position: -3150px 0; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }
}
#playBtn { position: absolute; bottom: 30px; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%);
}
.goToDemo { display: block; position: absolute; top: 30px; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%); color: #fff; text-decoration: none; text-transform: uppercase; padding: 10px 15px; border: 1px #fff solid; opacity: 0.7; -webkit-transition: all 0.3s linear; transition: all 0.3s linear;
}
.goToDemo:hover { background: #fff; color: #212121; opacity: 1;
}
CSS3 Spritesheet Fireworks Animation - Script Codes JS Codes
$('#playBtn').on('click',function(){ $('.largeF').toggleClass('is-animating');
});
![CSS3 Spritesheet Fireworks Animation - Script Codes](http://shots.codepen.io/ihatetomatoes/pen/gPxpNM-512.jpg)
Developer | Petr Tichy |
Username | ihatetomatoes |
Uploaded | September 07, 2022 |
Rating | 4 |
Size | 2,879 Kb |
Views | 64,768 |
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 |
SVG Match on fire - GreenSock Animation | 3,812 Kb |
GreenSock - staggerTo with cycle | 2,579 Kb |
GSAP - TweenLite demo - Final | 3,121 Kb |
Ihatetomatoes Animation - Crossbrowser | 5,936 Kb |
Animated Preloader - GreenSock DrawSVG Plugin | 5,220 Kb |
Happy New Year - GreenSock DrawSVG Animation | 10,551 Kb |
GreenSock - Click | 2,582 Kb |
GreenSock - Scale Box on Hover | 2,442 Kb |
Animating SVG With GreenSock | 5,944 Kb |
CSS3 Button Hover State | 2,407 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 |
Z-index demo | Kblh | 1,534 Kb |
Cloudy Spiral CSS animation | Hakimel | 6,587 Kb |
The CodePen Logo | Kindofone | 4,259 Kb |
Use the Twitchtv JSON API | Roksanaop | 3,561 Kb |
Pure CSS Dial | Lukewatts | 3,018 Kb |
Sass Get Function | Lukewatts | 2,155 Kb |
RollOver Effect 2 | Lmack90 | 2,162 Kb |
Swiftype Lower Third | Zumwalt | 4,796 Kb |
Rrremark.com Overlay Highlighter | Derickruiz | 4,438 Kb |
Foundation 5 Menu - Accessibility | Xporter | 1,999 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!