animarte
Version:
Making the digital world a little more animated place
50 lines (47 loc) • 1.23 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-3 .animarte-ellipsis__element {
animation-name: ellipsisBlinking3;
animation-duration: var(--animarte-speed);
animation-timing-function: ease-in-out;
opacity: 0;
}
.animarte-ellipsis--blinking-3 .animarte-ellipsis__element:nth-of-type(1) {
animation-delay: calc(var(--animarte-speed) / 3 * 1);
}
.animarte-ellipsis--blinking-3 .animarte-ellipsis__element:nth-of-type(2) {
animation-delay: calc(var(--animarte-speed) / 3 * 2);
}
.animarte-ellipsis--blinking-3 .animarte-ellipsis__element:nth-of-type(3) {
animation-delay: calc(var(--animarte-speed) / 3 * 3);
}
@keyframes ellipsisBlinking3 {
0%, 33.33% {
opacity: 1;
}
33.34%, 99.9% {
opacity: 0;
}
}