UNPKG

animarte

Version:

Making the digital world a little more animated place

123 lines (121 loc) 3.84 kB
.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-3 .animarte-windlows__element { position: absolute; width: inherit; height: inherit; display: flex; justify-content: center; animation-name: windlowsCrazy3; animation-iteration-count: infinite; animation-duration: calc(var(--animarte-speed) * 1.5); } .animarte-windlows--crazy-3 .animarte-windlows__element::before { content: ""; display: block; border-radius: 50%; background: currentColor; } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(1) { z-index: calc(10 - (1 + 1)); animation-delay: calc(var(--animarte-speed) / 4 / 10 * 1); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(1)::before { width: 20%; height: 20%; opacity: calc(1 - 0.05 * 1); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(2) { z-index: calc(10 - (2 + 1)); animation-delay: calc(var(--animarte-speed) / 4 / 10 * 2); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(2)::before { width: 20%; height: 20%; opacity: calc(1 - 0.05 * 2); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(3) { z-index: calc(10 - (3 + 1)); animation-delay: calc(var(--animarte-speed) / 4 / 10 * 3); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(3)::before { width: 20%; height: 20%; opacity: calc(1 - 0.05 * 3); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(4) { z-index: calc(10 - (4 + 1)); animation-delay: calc(var(--animarte-speed) / 4 / 10 * 4); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(4)::before { width: 20%; height: 20%; opacity: calc(1 - 0.05 * 4); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(5) { z-index: calc(10 - (5 + 1)); animation-delay: calc(var(--animarte-speed) / 4 / 10 * 5); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(5)::before { width: 20%; height: 20%; opacity: calc(1 - 0.05 * 5); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(6) { z-index: calc(10 - (6 + 1)); animation-delay: calc(var(--animarte-speed) / 4 / 10 * 6); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(6)::before { width: 20%; height: 20%; opacity: calc(1 - 0.05 * 6); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(7) { z-index: calc(10 - (7 + 1)); animation-delay: calc(var(--animarte-speed) / 4 / 10 * 7); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(7)::before { width: 20%; height: 20%; opacity: calc(1 - 0.05 * 7); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(8) { z-index: calc(10 - (8 + 1)); animation-delay: calc(var(--animarte-speed) / 4 / 10 * 8); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(8)::before { width: 20%; height: 20%; opacity: calc(1 - 0.05 * 8); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(9) { z-index: calc(10 - (9 + 1)); animation-delay: calc(var(--animarte-speed) / 4 / 10 * 9); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(9)::before { width: 20%; height: 20%; opacity: calc(1 - 0.05 * 9); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(10) { z-index: calc(10 - (10 + 1)); animation-delay: calc(var(--animarte-speed) / 4 / 10 * 10); } .animarte-windlows--crazy-3 .animarte-windlows__element:nth-of-type(10)::before { width: 20%; height: 20%; opacity: calc(1 - 0.05 * 10); } @keyframes windlowsCrazy3 { 100% { transform: rotateZ(4turn); } }