70 lines
973 B
CSS
70 lines
973 B
CSS
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
/* position */
|
|
.loading {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.item {
|
|
height: 50px;
|
|
width: 5px;
|
|
background: #0099CC; /* Blue color for .item elements */
|
|
margin: 0 3px;
|
|
border-radius: 10px;
|
|
animation: loading 1s infinite;
|
|
}
|
|
|
|
/* animation */
|
|
@keyframes loading {
|
|
0% {
|
|
height: 0px;
|
|
}
|
|
|
|
50% {
|
|
height: 50px;
|
|
}
|
|
|
|
100% {
|
|
height: 0px;
|
|
}
|
|
}
|
|
|
|
/* delay */
|
|
.item:nth-child(2) {
|
|
animation-delay: 0.1s;
|
|
}
|
|
|
|
.item:nth-child(3) {
|
|
animation-delay: 0.2s;
|
|
}
|
|
|
|
.item:nth-child(4) {
|
|
animation-delay: 0.3s;
|
|
}
|
|
|
|
.item:nth-child(5) {
|
|
animation-delay: 0.4s;
|
|
}
|
|
|
|
.item:nth-child(6) {
|
|
animation-delay: 0.5s;
|
|
}
|
|
|
|
.item:nth-child(7) {
|
|
animation-delay: 0.6s;
|
|
}
|
|
|
|
.item:nth-child(8) {
|
|
animation-delay: 0.7s;
|
|
}
|