Stagger animation with LESS CSS

Developer
Size
3,295 Kb
Views
50,600

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 Previews

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);
}
Stagger animation with LESS CSS - Script Codes
Stagger animation with LESS CSS - Script Codes
Home Page Home
Developer Tommie Hansen
Username tommiehansen
Uploaded August 22, 2022
Rating 3
Size 3,295 Kb
Views 50,600
Do you need developer help for Stagger animation with LESS CSS?

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!

Tommie Hansen (tommiehansen) Script Codes
Create amazing captions with AI!

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!