ldrs
Version:
Minimalist loading animations for React and web components
74 lines (65 loc) • 1.39 kB
CSS
.container_6f0428 {
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
height: var(--uib-size);
width: var(--uib-size);
}
.inner_1033b4 {
--uib-dot-size: 25%;
position: relative;
display: inline-block;
height: var(--uib-size);
width: var(--uib-size);
animation: spin_b998ee var(--uib-speed) infinite linear;
}
.dot_2d7220 {
position: absolute;
left: calc(50% - var(--uib-dot-size) / 2);
height: 100%;
width: var(--uib-dot-size);
}
.dot_2d7220:after {
content: "";
position: absolute;
top: 0;
left: 0;
height: 0%;
width: 100%;
padding-bottom: 100%;
background-color: var(--uib-color);
border-radius: 50%;
transition: background-color 0.3s ease;
}
.dot_2d7220:nth-child(1) {
transform: rotate(120deg);
}
.dot_2d7220:nth-child(1)::after {
animation: wobble_188fc2 var(--uib-speed) infinite ease-in-out;
}
.dot_2d7220:nth-child(2) {
transform: rotate(-120deg);
}
.dot_2d7220:nth-child(2)::after {
animation: wobble_188fc2 var(--uib-speed) infinite ease-in-out;
}
.dot_2d7220:nth-child(3)::after {
animation: wobble_188fc2 var(--uib-speed) infinite ease-in-out;
}
@keyframes spin_b998ee {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes wobble_188fc2 {
0%, 100% {
transform: translateY(0%);
}
50% {
transform: translateY(65%);
}
}