UNPKG

animarte

Version:

Making the digital world a little more animated place

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