ldrs
Version:
Minimalist loading animations for React and web components
75 lines (69 loc) • 1.42 kB
CSS
.container_e31963 {
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
height: calc(var(--uib-size) * 0.3);
width: var(--uib-size);
}
.inner_5211a3 {
position: relative;
top: 28%;
display: flex;
align-items: center;
justify-content: center;
width: 51%;
height: calc(var(--uib-size) * 0.51);
}
.dot_fb1bed {
position: relative;
display: flex;
flex-shrink: 0;
align-items: center;
height: 100%;
width: 25%;
transform-origin: center top;
}
.dot_fb1bed::after {
content: "";
display: block;
width: 100%;
height: 25%;
border-radius: 50%;
background-color: var(--uib-color);
transition: background-color 0.3s ease;
}
.dot_fb1bed:first-child {
animation: swing_7e0efe var(--uib-speed) linear infinite;
}
.dot_fb1bed:last-child {
animation: swing2_83a943 var(--uib-speed) linear infinite;
}
@keyframes swing_7e0efe {
0% {
transform: rotate(0deg);
animation-timing-function: ease-out;
}
25% {
transform: rotate(70deg);
animation-timing-function: ease-in;
}
50% {
transform: rotate(0deg);
animation-timing-function: linear;
}
}
@keyframes swing2_83a943 {
0% {
transform: rotate(0deg);
animation-timing-function: linear;
}
50% {
transform: rotate(0deg);
animation-timing-function: ease-out;
}
75% {
transform: rotate(-70deg);
animation-timing-function: ease-in;
}
}