mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-27 20:50:21 +08:00
61 lines
1.1 KiB
HTML
61 lines
1.1 KiB
HTML
<div class="loader">
|
|
<div class="circle" tabindex="0"></div>
|
|
<div class="circle" tabindex="0"></div>
|
|
<div class="circle" tabindex="0"></div>
|
|
<div class="circle" tabindex="0"></div>
|
|
<div class="circle" tabindex="0"></div>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by forgingdestiny - Tags: simple, minimalist, loader, wave, css effect */
|
|
/* Container for the loader */
|
|
.loader {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 10em;
|
|
}
|
|
|
|
/* Circle elements */
|
|
.circle {
|
|
width: 1em;
|
|
height: 1em;
|
|
margin: 0 0.25em;
|
|
border-radius: 50%;
|
|
background-color: #a8d5e2;
|
|
animation: wave 1.5s infinite ease-in-out;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
/* Animation */
|
|
@keyframes wave {
|
|
0%, 100% {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
50% {
|
|
transform: translateY(-1em);
|
|
}
|
|
}
|
|
|
|
/* Delay for each circle */
|
|
.circle:nth-child(1) {
|
|
animation-delay: 0s;
|
|
}
|
|
|
|
.circle:nth-child(2) {
|
|
animation-delay: 0.2s;
|
|
}
|
|
|
|
.circle:nth-child(3) {
|
|
animation-delay: 0.4s;
|
|
}
|
|
|
|
.circle:nth-child(4) {
|
|
animation-delay: 0.6s;
|
|
}
|
|
|
|
.circle:nth-child(5) {
|
|
animation-delay: 0.8s;
|
|
}
|
|
|
|
</style>
|