CSS Jenga Loading Animation
How do I make an css jenga loading animation?
What is a css jenga loading animation? How do you make a css jenga loading animation? This script and codes were developed by Quincy Soeliman on 22 July 2022, Friday.
CSS Jenga Loading Animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Jenga Loading Animation</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="loader"> <div class="jenga"> <div class="row top-row"> <div class="wood block block-large"></div> </div> <div class="row middle-row"> <div class="variant-1 block block-small"></div> <div class="variant-2 block block-small"></div> <div class="variant-3 block block-small"></div> </div> <div class="row bottom-row"> <div class="wood block block-large"></div> </div> </div>
</div>
</body>
</html>
CSS Jenga Loading Animation - Script Codes CSS Codes
html,
body { margin: 0; padding: 0; min-height: 100%; height: 100%;
}
body { display: flex; justify-content: center; align-items: center;
}
.loader { display: flex; justify-content: center; align-items: center;
}
.jenga { position: relative; display: block; width: 120px; height: 100px; animation: jenga 5s ease-in-out infinite;
}
.jenga .row .block { position: absolute; border-radius: 3px;
}
.jenga .top-row .block { top: 25px; left: 0; animation: top-block 5s ease-in-out infinite;
}
.jenga .middle-row .block { top: 50px;
}
.jenga .middle-row .block:first-child { left: 0; animation: left-middle-block 5s ease-in-out infinite;
}
.jenga .middle-row .block:nth-child(2) { left: 40px; animation: middle-middle-block 5s ease-in-out infinite;
}
.jenga .middle-row .block:last-child { left: 80px; animation: right-middle-block 5s ease-in-out infinite;
}
.jenga .bottom-row .block { top: 75px; animation: bottom-block 5s ease-in-out infinite;
}
.jenga .block { display: block; height: 25px;
}
.jenga .block-small { width: 40px;
}
.jenga .block-large { width: 120px;
}
.jenga .block.wood { background-color: #ecdab0;
}
.jenga .block.variant-1 { background-color: #064aa2;
}
.jenga .block.variant-2 { background-color: #fe8919;
}
.jenga .block.variant-3 { background-color: #e7d100;
}
@keyframes top-block { 0% { top: 25px; } 40% { top: 25px; } 50% { top: 50px; } 80% { top: 50px; } 90% { top: 75px; } 100% { top: 75px; }
}
@keyframes left-middle-block { 0% { left: 0; } 10% { top: 50px; left: -40px; } 20% { top: 0; left: -40px; } 30% { left: 0; } 40% { top: 0; } 50% { top: 25px; } 80% { top: 25px; } 90% { top: 50px; } 100% { top: 50px; }
}
@keyframes right-middle-block { 0% { left: 80px; } 10% { top: 50px; left: 120px; } 20% { top: 0; left: 120px; } 30% { left: 80px; } 40% { top: 0; } 50% { top: 25px; } 80% { top: 25px; } 90% { top: 50px; } 100% { top: 50px; }
}
@keyframes middle-middle-block { 30% { left: 40px; } 40% { top: 50px; left: 120px; } 50% { top: 0; left: 120px; } 60% { top: 0; left: 40px; } 70% { top: 25px; left: 40px; } 80% { top: 25px; left: 40px; } 90% { top: 50px; } 100% { top: 50px; }
}
@keyframes bottom-block { 70% { top: 75px; left: 0; } 80% { top: 75px; left: -120px; } 90% { top: 25px; left: -120px; } 100% { top: 25px; left: 0; }
}
@keyframes jenga { 0% { margin-top: -12.5px; } 10% { margin-top: -12.5px; } 20% { margin-top: 0; } 30% { margin-top: 0; } 60% { margin-top: 0; } 70% { margin-top: -12.5px; } 100% { margin-top: -12.5px; }
}
Developer | Quincy Soeliman |
Username | quincysoeliman |
Uploaded | July 22, 2022 |
Rating | 3 |
Size | 2,932 Kb |
Views | 82,984 |
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 |
VueJS Multi Select | 1,772 Kb |
Datepicker | 1,358 Kb |
CSS Rocket Ship | 3,714 Kb |
Flipping cards | 2,375 Kb |
Car Animation | 2,238 Kb |
Drawing board | 1,985 Kb |
VueJS Names | 1,608 Kb |
A Pen by Quincy Soeliman | 1,279 Kb |
ATM | 2,484 Kb |
Counter | 2,601 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 |
Multiple jCarousel | Pafnuty | 2,461 Kb |
Canvas Fireworks | Jackrugile | 6,200 Kb |
CSS Grid Overlay | Cliffpyles | 3,090 Kb |
Lecture 1 | Law | 0 Kb |
Minimelephant | Smashlee | 2,507 Kb |
Scarlett Johansson Tribute Page | Diomed | 3,233 Kb |
Opening Reveal Modal On Document Ready | Winghouchan | 1,787 Kb |
Long Shadow Button | Uixcrazy | 3,550 Kb |
CSS Variables | Jdsteinbach | 4,759 Kb |
Search Box in Content Moves to Fixed Header | Chriscoyier | 2,768 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!