Stacked Bar Loader - html loader

Stacked Bar Loader – html loader

Source code:

<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Stacked Bar Loader</title>
<style>

body{
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.loader-container{
display: flex;
gap: 8px;
}

.bar{
width: 10px;
height: 40px;
background: #fff;
animation: bounce 1.2s infinite ease-in-out;
}

.bar:nth-child(2){
animation-delay: 0.1s;
}
.bar:nth-child(3){
animation-delay: 0.2s;
}
.bar:nth-child(4){
animation-delay: 0.3s;
}
.bar:nth-child(5){
animation-delay: 0.4s;
}

@keyframes bounce {
0%, 100%{
transform: scaleY(1);
}
50%{
transform: scaleY(2);
}
}

</style>
</head>
<body>

<div class=”loader-container”>
<div class=”bar”></div>
<div class=”bar”></div>
<div class=”bar”></div>
<div class=”bar”></div>
<div class=”bar”></div>
</div>

</body>
</html>

Scroll to Top