animarte
Version:
Making the digital world a little more animated place
93 lines (91 loc) • 3.13 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--asymmetrical-circles .animarte-windlows__element {
position: absolute;
width: inherit;
height: inherit;
display: flex;
justify-content: center;
animation-name: spinKeyframes;
animation-duration: var(--animarte-speed);
animation-iteration-count: infinite;
}
.animarte-windlows--asymmetrical-circles .animarte-windlows__element::before {
content: "";
display: block;
border-radius: 50%;
background: currentColor;
}
.animarte-windlows--asymmetrical-circles .animarte-windlows__element:nth-of-type(1)::before {
width: calc(20% - 2.5% * 1);
height: calc(20% - 2.5% * 1);
opacity: calc(1 - 0.1 * 1);
margin: calc(1 * 1.25%) 0;
}
.animarte-windlows--asymmetrical-circles .animarte-windlows__element:nth-of-type(2)::before {
width: calc(20% - 2.5% * 2);
height: calc(20% - 2.5% * 2);
opacity: calc(1 - 0.1 * 2);
margin: calc(2 * 1.25%) 0;
}
.animarte-windlows--asymmetrical-circles .animarte-windlows__element:nth-of-type(3)::before {
width: calc(20% - 2.5% * 3);
height: calc(20% - 2.5% * 3);
opacity: calc(1 - 0.1 * 3);
margin: calc(3 * 1.25%) 0;
}
.animarte-windlows--asymmetrical-circles .animarte-windlows__element:nth-of-type(4)::before {
width: calc(20% - 2.5% * 4);
height: calc(20% - 2.5% * 4);
opacity: calc(1 - 0.1 * 4);
margin: calc(4 * 1.25%) 0;
}
.animarte-windlows--asymmetrical-circles .animarte-windlows__element:nth-of-type(5)::before {
width: calc(20% - 2.5% * 5);
height: calc(20% - 2.5% * 5);
opacity: calc(1 - 0.1 * 5);
margin: calc(5 * 1.25%) 0;
}
.animarte-windlows--asymmetrical-circles .animarte-windlows__element:nth-of-type(6)::before {
width: calc(20% - 2.5% * 6);
height: calc(20% - 2.5% * 6);
opacity: calc(1 - 0.1 * 6);
margin: calc(6 * 1.25%) 0;
}
.animarte-windlows--asymmetrical-circles .animarte-windlows__element:nth-of-type(1) {
z-index: calc(10 - (1 + 1));
animation-delay: calc(var(--animarte-speed) / 4 / 6 * 1);
}
.animarte-windlows--asymmetrical-circles .animarte-windlows__element:nth-of-type(2) {
z-index: calc(10 - (2 + 1));
animation-delay: calc(var(--animarte-speed) / 4 / 6 * 2);
}
.animarte-windlows--asymmetrical-circles .animarte-windlows__element:nth-of-type(3) {
z-index: calc(10 - (3 + 1));
animation-delay: calc(var(--animarte-speed) / 4 / 6 * 3);
}
.animarte-windlows--asymmetrical-circles .animarte-windlows__element:nth-of-type(4) {
z-index: calc(10 - (4 + 1));
animation-delay: calc(var(--animarte-speed) / 4 / 6 * 4);
}
.animarte-windlows--asymmetrical-circles .animarte-windlows__element:nth-of-type(5) {
z-index: calc(10 - (5 + 1));
animation-delay: calc(var(--animarte-speed) / 4 / 6 * 5);
}
.animarte-windlows--asymmetrical-circles .animarte-windlows__element:nth-of-type(6) {
z-index: calc(10 - (6 + 1));
animation-delay: calc(var(--animarte-speed) / 4 / 6 * 6);
}
@keyframes spinKeyframes {
100% {
transform: rotateZ(360deg);
}
}