ldrs
Version:
Minimalist loading animations for React and web components
88 lines (77 loc) • 1.55 kB
CSS
.container_71ba79 {
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
height: calc(var(--uib-size) * 0.63);
width: var(--uib-size);
}
.inner_be2cc5 {
position: relative;
top: 8%;
display: flex;
align-items: center;
justify-content: flex-start;
height: var(--uib-size);
width: var(--uib-size);
}
.dot_75ace3 {
position: absolute;
top: 13.5%;
left: 0;
display: flex;
align-items: center;
justify-content: flex-start;
height: 100%;
width: 100%;
animation: swing_d74f78 var(--uib-speed) linear infinite;
}
.dot_75ace3::before {
content: "";
height: 25%;
width: 25%;
border-radius: 50%;
background-color: var(--uib-color);
transition: background-color 0.3s ease;
}
.dot_75ace3:nth-child(1) {
animation-delay: calc(var(--uib-speed) * -0.36);
}
.dot_75ace3:nth-child(2) {
animation-delay: calc(var(--uib-speed) * -0.27);
opacity: 0.8;
}
.dot_75ace3:nth-child(2)::before {
transform: scale(0.9);
}
.dot_75ace3:nth-child(3) {
animation-delay: calc(var(--uib-speed) * -0.18);
opacity: 0.6;
}
.dot_75ace3:nth-child(3)::before {
transform: scale(0.8);
}
.dot_75ace3:nth-child(4) {
animation-delay: calc(var(--uib-speed) * -0.09);
opacity: 0.4;
}
.dot_75ace3:nth-child(4)::before {
transform: scale(0.7);
}
@keyframes swing_d74f78 {
0% {
transform: rotate(0deg);
}
15% {
transform: rotate(0deg);
}
50% {
transform: rotate(180deg);
}
65% {
transform: rotate(180deg);
}
100% {
transform: rotate(0deg);
}
}