Steps Sprite Animation
How do I make an steps sprite animation?
A code example from the CSS Animations Pocket Guide from Five Simple Steps (http://www.fivesimplesteps.com/products/css-animations) . What is a steps sprite animation? How do you make a steps sprite animation? This script and codes were developed by Val Head on 07 August 2022, Sunday.
Steps Sprite Animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Steps Sprite Animation</title> <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! */ .sprite { width:245px; height:400px; display:block; background:transparent url(http://s.cdpn.io/13034/walker.png) 0 0 no-repeat; margin:3em auto; animation: walker 1s steps(5) infinite;
}
@keyframes walker { from {background-position:0 0;} to {background-position:0 -4000px;}
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="sprite"></div>
</body>
</html>
Steps Sprite Animation - Script Codes CSS Codes
.sprite { width:245px; height:400px; display:block; background:transparent url(http://s.cdpn.io/13034/walker.png) 0 0 no-repeat; margin:3em auto; animation: walker 1s steps(5) infinite;
}
@keyframes walker { from {background-position:0 0;} to {background-position:0 -4000px;}
}
Developer | Val Head |
Username | valhead |
Uploaded | August 07, 2022 |
Rating | 3.5 |
Size | 1,942 Kb |
Views | 52,624 |
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 |
Hypno triangle | 2,371 Kb |
3D dancing dots | 2,334 Kb |
Modal Relationship Examples | 4,612 Kb |
IOS Gmail loader-ish | 2,920 Kb |
500 coffee cup icons | 3,169 Kb |
Basic CSS animation and transition example | 2,915 Kb |
Geometric Pattern Mask | 2,527 Kb |
Net magazine demo - Step 3 | 5,295 Kb |
Net magazine demo - Complete | 5,291 Kb |
Adding Items | 4,008 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 |
Mapbox Directions with geolocation tracking | Pollardld | 5,827 Kb |
Random Gradients - JS | Aldlevine | 2,026 Kb |
Slide In Panel | Vikvarg | 2,811 Kb |
Pure CSS Menu | Bronsrobin | 3,321 Kb |
Speech bubbles | Something | 1,547 Kb |
Eunice A | Ejbronze | 2,203 Kb |
SCSS Unit Conversion | Jakob-e | 8,210 Kb |
Starfield using KineticJS | Asp | 3,512 Kb |
Simple content swap | Snografx | 1,859 Kb |
Factorial | KeithleySLHS | 1,158 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!