ldrs
Version:
Minimalist loading animations for React and web components
54 lines (50 loc) • 1.08 kB
CSS
.container_f47ac7 {
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
height: var(--uib-size);
width: var(--uib-size);
}
.inner_235694 {
height: var(--uib-size);
width: var(--uib-size);
transform-origin: center;
animation: rotate_c76b1d var(--uib-speed) linear infinite;
will-change: transform;
overflow: visible;
}
.car_b190b2 {
fill: none;
stroke: var(--uib-color);
stroke-dasharray: 1, 200;
stroke-dashoffset: 0;
stroke-linecap: round;
animation: stretch_e5e8e0 calc(var(--uib-speed) * 0.75) ease-in-out infinite;
will-change: stroke-dasharray, stroke-dashoffset;
transition: stroke 0.5s ease;
}
.track_4529b9 {
fill: none;
stroke: var(--uib-color);
opacity: var(--uib-bg-opacity);
transition: stroke 0.5s ease;
}
@keyframes rotate_c76b1d {
100% {
transform: rotate(360deg);
}
}
@keyframes stretch_e5e8e0 {
0% {
stroke-dasharray: 0, 150;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 75, 150;
stroke-dashoffset: -25;
}
100% {
stroke-dashoffset: -99;
}
}