ldrs
Version:
Minimalist loading animations for React and web components
70 lines (61 loc) • 1.45 kB
CSS
.container_d9a47f {
--uib-dot-size: calc(var(--uib-size) * 0.23);
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
width: var(--uib-size);
height: var(--uib-dot-size);
}
:host([hidden]) {
display: none;
}
.inner_621197 {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
width: var(--uib-size);
height: var(--uib-dot-size);
}
.svg_e29ee7 {
filter: url("#uib-mirage-filter");
overflow: visible;
}
.dot_49151b {
position: absolute;
cy: calc(var(--uib-dot-size) / 2);
cx: 0;
r: calc(var(--uib-dot-size) / 2);
display: block;
height: var(--uib-dot-size);
width: var(--uib-dot-size);
fill: var(--uib-color);
animation: stream_cd02d5 var(--uib-speed) linear infinite both;
transition: background-color 0.3s ease;
transform-origin: center;
transform-box: fill-box;
}
.dot_49151b:nth-child(2) {
animation-delay: calc(var(--uib-speed) * -0.2);
}
.dot_49151b:nth-child(3) {
animation-delay: calc(var(--uib-speed) * -0.4);
}
.dot_49151b:nth-child(4) {
animation-delay: calc(var(--uib-speed) * -0.6);
}
.dot_49151b:nth-child(5) {
animation-delay: calc(var(--uib-speed) * -0.8);
}
@keyframes stream_cd02d5 {
0%, 100% {
transform: translateX(0) scale(0);
}
50% {
transform: translateX(calc(var(--uib-size) * 0.5)) scale(1);
}
99.999% {
transform: translateX(calc(var(--uib-size))) scale(0);
}
}