animarte
Version:
Making the digital world a little more animated place
133 lines (131 loc) • 4.68 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-windlows--crazy-2 .animarte-windlows__element {
position: absolute;
width: inherit;
height: inherit;
display: flex;
justify-content: center;
animation-name: windlowsCrazy2;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
.animarte-windlows--crazy-2 .animarte-windlows__element::before {
content: "";
display: block;
border-radius: 50%;
background: currentColor;
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(1) {
z-index: calc(10 - (1 + 1));
animation-delay: calc(var(--animarte-speed) / 4 / 10 * 1);
animation-duration: calc(var(--animarte-speed) + var(--animarte-speed) * 0.05 * 1);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(1)::before {
width: 20%;
height: 20%;
opacity: calc(1 - 0.05 * 1);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(2) {
z-index: calc(10 - (2 + 1));
animation-delay: calc(var(--animarte-speed) / 4 / 10 * 2);
animation-duration: calc(var(--animarte-speed) + var(--animarte-speed) * 0.05 * 2);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(2)::before {
width: 20%;
height: 20%;
opacity: calc(1 - 0.05 * 2);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(3) {
z-index: calc(10 - (3 + 1));
animation-delay: calc(var(--animarte-speed) / 4 / 10 * 3);
animation-duration: calc(var(--animarte-speed) + var(--animarte-speed) * 0.05 * 3);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(3)::before {
width: 20%;
height: 20%;
opacity: calc(1 - 0.05 * 3);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(4) {
z-index: calc(10 - (4 + 1));
animation-delay: calc(var(--animarte-speed) / 4 / 10 * 4);
animation-duration: calc(var(--animarte-speed) + var(--animarte-speed) * 0.05 * 4);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(4)::before {
width: 20%;
height: 20%;
opacity: calc(1 - 0.05 * 4);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(5) {
z-index: calc(10 - (5 + 1));
animation-delay: calc(var(--animarte-speed) / 4 / 10 * 5);
animation-duration: calc(var(--animarte-speed) + var(--animarte-speed) * 0.05 * 5);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(5)::before {
width: 20%;
height: 20%;
opacity: calc(1 - 0.05 * 5);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(6) {
z-index: calc(10 - (6 + 1));
animation-delay: calc(var(--animarte-speed) / 4 / 10 * 6);
animation-duration: calc(var(--animarte-speed) + var(--animarte-speed) * 0.05 * 6);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(6)::before {
width: 20%;
height: 20%;
opacity: calc(1 - 0.05 * 6);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(7) {
z-index: calc(10 - (7 + 1));
animation-delay: calc(var(--animarte-speed) / 4 / 10 * 7);
animation-duration: calc(var(--animarte-speed) + var(--animarte-speed) * 0.05 * 7);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(7)::before {
width: 20%;
height: 20%;
opacity: calc(1 - 0.05 * 7);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(8) {
z-index: calc(10 - (8 + 1));
animation-delay: calc(var(--animarte-speed) / 4 / 10 * 8);
animation-duration: calc(var(--animarte-speed) + var(--animarte-speed) * 0.05 * 8);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(8)::before {
width: 20%;
height: 20%;
opacity: calc(1 - 0.05 * 8);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(9) {
z-index: calc(10 - (9 + 1));
animation-delay: calc(var(--animarte-speed) / 4 / 10 * 9);
animation-duration: calc(var(--animarte-speed) + var(--animarte-speed) * 0.05 * 9);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(9)::before {
width: 20%;
height: 20%;
opacity: calc(1 - 0.05 * 9);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(10) {
z-index: calc(10 - (10 + 1));
animation-delay: calc(var(--animarte-speed) / 4 / 10 * 10);
animation-duration: calc(var(--animarte-speed) + var(--animarte-speed) * 0.05 * 10);
}
.animarte-windlows--crazy-2 .animarte-windlows__element:nth-of-type(10)::before {
width: 20%;
height: 20%;
opacity: calc(1 - 0.05 * 10);
}
@keyframes windlowsCrazy2 {
100% {
transform: rotateZ(360deg);
}
}