CSS Loader
by Shridhar Baddur
HTML
<div class="app-loader-default">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
CSS
* {
margin: 0;
padding: 0;
}
body {
background: #000000;
}
.app-loader-default {
display: inline-block;
position: relative;
width: 14px;
height: 14px;
border-radius: 50%;
}
.app-loader-default div {
position: absolute;
width: 3px;
height: 3px;
background: #ffffff;
border-radius: 50%;
animation: app-loader-default 1.2s linear infinite;
}
.app-loader-default div:nth-child(1) {
animation-delay: 0s;
top: 5.5px;
left: 12.5px;
}
.app-loader-default div:nth-child(2) {
animation-delay: -0.1s;
top: 1.5px;
left: 11px;
}
.app-loader-default div:nth-child(3) {
animation-delay: -0.2s;
top: 0px;
left: 5.5px;
}
.app-loader-default div:nth-child(4) {
animation-delay: -0.4s;
top: 1.5px;
left: 0.5px;
}
.app-loader-default div:nth-child(5) {
animation-delay: -0.6s;
top: 5.5px;
left: 0px;
}
.app-loader-default div:nth-child(6) {
animation-delay: -0.8s;
top: 10.5px;
left: 0.5px;
}
.app-loader-default div:nth-child(7) {
animation-delay: -1s;
top: 12.5px;
left: 5.5px;
}
.app-loader-default div:nth-child(8) {
animation-delay: -1.1s;
top: 10.5px;
left: 11px;
}
@keyframes app-loader-default {
0%,
20%,
80%,
100% {
transform: scale(1);
}
50% {
transform: scale(1.5);
}
}