animarte
Version:
Making the digital world a little more animated place
66 lines (63 loc) • 1.42 kB
CSS
.animarte {
position: relative;
isolation: isolate;
box-sizing: border-box;
overflow: hidden;
flex-shrink: 0;
width: var(--animarte-size);
height: var(--animarte-size);
color: var(--animarte-color);
}
.animarte-ellipsis {
display: flex;
justify-content: space-between;
align-items: center;
}
.animarte-ellipsis__element {
--width: 20%;
--height: 20%;
width: var(--width);
height: var(--height);
border-radius: 100vw;
background: currentColor;
animation-iteration-count: infinite;
}
.animarte-ellipsis--blinking-5 .animarte-ellipsis__element {
animation-name: ellipsisBlinking5;
animation-duration: var(--animarte-speed);
animation-timing-function: linear;
animation-direction: alternate;
}
.animarte-ellipsis--blinking-5 .animarte-ellipsis__element:nth-of-type(1) {
animation-name: ellipsisBlinking5Left;
}
.animarte-ellipsis--blinking-5 .animarte-ellipsis__element:nth-of-type(2) {
animation-name: ellipsisBlinking5Middle;
}
.animarte-ellipsis--blinking-5 .animarte-ellipsis__element:nth-of-type(3) {
animation-name: ellipsisBlinking5Right;
}
@keyframes ellipsisBlinking5Left {
0%, 25% {
opacity: 0.4;
}
50%, 100% {
opacity: 1;
}
}
@keyframes ellipsisBlinking5Middle {
0%, 25%, 75%, 100% {
opacity: 1;
}
50% {
opacity: 0.4;
}
}
@keyframes ellipsisBlinking5Right {
0%, 50% {
opacity: 1;
}
75%, 100% {
opacity: 0.4;
}
}