mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-27 20:50:21 +08:00
44 lines
731 B
HTML
44 lines
731 B
HTML
<div class="pulsar"></div>
|
|
<style>
|
|
/* From Uiverse.io by G4b413l - Tags: loader */
|
|
.pulsar {
|
|
--uib-size: 40px;
|
|
--uib-speed: 0.9s;
|
|
--uib-color: white;
|
|
position: relative;
|
|
height: var(--uib-size);
|
|
width: var(--uib-size);
|
|
}
|
|
|
|
.pulsar::before,
|
|
.pulsar::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
border-radius: 50%;
|
|
background-color: var(--uib-color);
|
|
animation: pulse9173412 var(--uib-speed) ease-in-out infinite;
|
|
transform: scale(0);
|
|
}
|
|
|
|
.pulsar::after {
|
|
animation-delay: calc(var(--uib-speed) / -2);
|
|
}
|
|
|
|
@keyframes pulse9173412 {
|
|
0%,
|
|
100% {
|
|
transform: scale(0);
|
|
opacity: 1;
|
|
}
|
|
|
|
50% {
|
|
transform: scale(1);
|
|
opacity: 0.25;
|
|
}
|
|
}
|
|
|
|
</style>
|