mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
61 lines
1.3 KiB
HTML
61 lines
1.3 KiB
HTML
<div class="dot-wave">
|
|
<div class="dot-wave__dot"></div>
|
|
<div class="dot-wave__dot"></div>
|
|
<div class="dot-wave__dot"></div>
|
|
<div class="dot-wave__dot"></div>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by G4b413l - Tags: loader */
|
|
.dot-wave {
|
|
--uib-size: 50px;
|
|
--uib-speed: 0.6s;
|
|
--uib-color: #0d0909;
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: var(--uib-size);
|
|
height: calc(var(--uib-size) * 0.17);
|
|
padding-top: calc(var(--uib-size) * 0.34);
|
|
}
|
|
|
|
.dot-wave__dot {
|
|
flex-shrink: 0;
|
|
width: calc(var(--uib-size) * 0.17);
|
|
height: calc(var(--uib-size) * 0.17);
|
|
border-radius: 50%;
|
|
background-color: var(--uib-color);
|
|
will-change: transform;
|
|
}
|
|
|
|
.dot-wave__dot:nth-child(1) {
|
|
animation: jump824 var(--uib-speed) ease-in-out
|
|
calc(var(--uib-speed) * -0.45) infinite;
|
|
}
|
|
|
|
.dot-wave__dot:nth-child(2) {
|
|
animation: jump824 var(--uib-speed) ease-in-out
|
|
calc(var(--uib-speed) * -0.3) infinite;
|
|
}
|
|
|
|
.dot-wave__dot:nth-child(3) {
|
|
animation: jump824 var(--uib-speed) ease-in-out
|
|
calc(var(--uib-speed) * -0.15) infinite;
|
|
}
|
|
|
|
.dot-wave__dot:nth-child(4) {
|
|
animation: jump824 var(--uib-speed) ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes jump824 {
|
|
0%,
|
|
100% {
|
|
transform: translateY(0px);
|
|
}
|
|
|
|
50% {
|
|
transform: translateY(-200%);
|
|
}
|
|
}
|
|
|
|
</style>
|