UNPKG

animarte

Version:

Making the digital world a little more animated place

44 lines (42 loc) 1.2 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-circles--rotating-2 { display: grid; justify-items: center; align-items: center; } .animarte-circles--rotating-2 .animarte-circles__element { grid-area: 1/1; margin: 0; width: 100%; height: 100%; border-radius: 50%; background: transparent; border: calc(var(--animarte-size) * 0.1) solid currentColor; animation-name: circlesRotating2; animation-duration: var(--animarte-speed); animation-iteration-count: infinite; animation-timing-function: linear; } .animarte-circles--rotating-2 .animarte-circles__element:nth-of-type(1) { animation-delay: calc(var(--animarte-speed) / 2 / 4 * 1); } .animarte-circles--rotating-2 .animarte-circles__element:nth-of-type(2) { animation-delay: calc(var(--animarte-speed) / 2 / 4 * 2); } .animarte-circles--rotating-2 .animarte-circles__element:nth-of-type(3) { animation-delay: calc(var(--animarte-speed) / 2 / 4 * 3); } @keyframes circlesRotating2 { 50% { transform: rotate3d(1, 1, 1, 1turn); } }