Stagger animation with LESS CSS
How do I make an stagger animation with less css?
Simple function to stagger animations with LESS.. What is a stagger animation with less css? How do you make a stagger animation with less css? This script and codes were developed by Tommie Hansen on 22 August 2022, Monday.
Stagger animation with LESS CSS - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Stagger animation with LESS CSS</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.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 { font-size: 62.5%; line-height: 150%; background: #fff; text-align: center; padding: 40px 0; max-width: 700px; margin: 0 auto;
}
div { width: 100px; height: 100px; background: #0cf; display: inline-block; margin: 0 10px 20px;
}
div { opacity: 0; border-radius: 5px;
}
div:nth-child(2n+1) { background: hotpink;
}
h1 { font-size: 2rem; color: #aaa; margin: 20px 0 60px; font-weight: normal; font-family: arial,helvetica;
}
@keyframes in { 0% { transform: translateY(200px) rotateX(180deg) rotateY(-180deg) rotateZ(15deg); opacity: 0; } 100% { transform: none; opacity: 1; }
}
div:nth-child(30) { animation-delay: 1450ms;
}
div:nth-child(29) { animation-delay: 1400ms;
}
div:nth-child(28) { animation-delay: 1350ms;
}
div:nth-child(27) { animation-delay: 1300ms;
}
div:nth-child(26) { animation-delay: 1250ms;
}
div:nth-child(25) { animation-delay: 1200ms;
}
div:nth-child(24) { animation-delay: 1150ms;
}
div:nth-child(23) { animation-delay: 1100ms;
}
div:nth-child(22) { animation-delay: 1050ms;
}
div:nth-child(21) { animation-delay: 1000ms;
}
div:nth-child(20) { animation-delay: 950ms;
}
div:nth-child(19) { animation-delay: 900ms;
}
div:nth-child(18) { animation-delay: 850ms;
}
div:nth-child(17) { animation-delay: 800ms;
}
div:nth-child(16) { animation-delay: 750ms;
}
div:nth-child(15) { animation-delay: 700ms;
}
div:nth-child(14) { animation-delay: 650ms;
}
div:nth-child(13) { animation-delay: 600ms;
}
div:nth-child(12) { animation-delay: 550ms;
}
div:nth-child(11) { animation-delay: 500ms;
}
div:nth-child(10) { animation-delay: 450ms;
}
div:nth-child(9) { animation-delay: 400ms;
}
div:nth-child(8) { animation-delay: 350ms;
}
div:nth-child(7) { animation-delay: 300ms;
}
div:nth-child(6) { animation-delay: 250ms;
}
div:nth-child(5) { animation-delay: 200ms;
}
div:nth-child(4) { animation-delay: 150ms;
}
div:nth-child(3) { animation-delay: 100ms;
}
div:nth-child(2) { animation-delay: 50ms;
}
div:nth-child(1) { animation-delay: 0ms;
}
div { animation: in 0.7s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <h1>Stagger animation with LESS CSS loop</h1>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</body>
</html>
Stagger animation with LESS CSS - Script Codes CSS Codes
body { font-size: 62.5%; line-height: 150%; background: #fff; text-align: center; padding: 40px 0; max-width: 700px; margin: 0 auto;
}
div { width: 100px; height: 100px; background: #0cf; display: inline-block; margin: 0 10px 20px;
}
div { opacity: 0; border-radius: 5px;
}
div:nth-child(2n+1) { background: hotpink;
}
h1 { font-size: 2rem; color: #aaa; margin: 20px 0 60px; font-weight: normal; font-family: arial,helvetica;
}
@keyframes in { 0% { transform: translateY(200px) rotateX(180deg) rotateY(-180deg) rotateZ(15deg); opacity: 0; } 100% { transform: none; opacity: 1; }
}
div:nth-child(30) { animation-delay: 1450ms;
}
div:nth-child(29) { animation-delay: 1400ms;
}
div:nth-child(28) { animation-delay: 1350ms;
}
div:nth-child(27) { animation-delay: 1300ms;
}
div:nth-child(26) { animation-delay: 1250ms;
}
div:nth-child(25) { animation-delay: 1200ms;
}
div:nth-child(24) { animation-delay: 1150ms;
}
div:nth-child(23) { animation-delay: 1100ms;
}
div:nth-child(22) { animation-delay: 1050ms;
}
div:nth-child(21) { animation-delay: 1000ms;
}
div:nth-child(20) { animation-delay: 950ms;
}
div:nth-child(19) { animation-delay: 900ms;
}
div:nth-child(18) { animation-delay: 850ms;
}
div:nth-child(17) { animation-delay: 800ms;
}
div:nth-child(16) { animation-delay: 750ms;
}
div:nth-child(15) { animation-delay: 700ms;
}
div:nth-child(14) { animation-delay: 650ms;
}
div:nth-child(13) { animation-delay: 600ms;
}
div:nth-child(12) { animation-delay: 550ms;
}
div:nth-child(11) { animation-delay: 500ms;
}
div:nth-child(10) { animation-delay: 450ms;
}
div:nth-child(9) { animation-delay: 400ms;
}
div:nth-child(8) { animation-delay: 350ms;
}
div:nth-child(7) { animation-delay: 300ms;
}
div:nth-child(6) { animation-delay: 250ms;
}
div:nth-child(5) { animation-delay: 200ms;
}
div:nth-child(4) { animation-delay: 150ms;
}
div:nth-child(3) { animation-delay: 100ms;
}
div:nth-child(2) { animation-delay: 50ms;
}
div:nth-child(1) { animation-delay: 0ms;
}
div { animation: in 0.7s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
Developer | Tommie Hansen |
Username | tommiehansen |
Uploaded | August 22, 2022 |
Rating | 3 |
Size | 3,295 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 |
Cash animate, card sequencing | 13,340 Kb |
A Pen by Tommie Hansen | 3,321 Kb |
Stagger animation helper | 7,989 Kb |
Animated CSS loader | 5,053 Kb |
Velocity.js sequence | 6,096 Kb |
Velocity.js vs CSS3 animation performance | 5,745 Kb |
Button pusher | 2,220 Kb |
Velocity.js cards layout | 5,151 Kb |
Optimized SVG URI replacer tool | 9,911 Kb |
Velocity.js reverse sequence | 3,988 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 |
Navier Stoke Fluid Simulation | Esimov | 8,584 Kb |
Mobile Nav Menu | AliKlein | 4,745 Kb |
BlueBox Fork | Huskynation | 12,675 Kb |
Multi column experiment. | Spylefkaditis | 2,805 Kb |
Base64 SVG Me | MrBambule | 44,786 Kb |
About Mazano | Kiti | 2,585 Kb |
A Pen by Jay | Jaycode | 3,784 Kb |
Board Site | IndianaLuft | 10,542 Kb |
Animated rainbow wave on canvas | Icodeforlove | 2,777 Kb |
Find The Penguin | Lelder | 2,212 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!