UNPKG

animarte

Version:

Making the digital world a little more animated place

51 lines (49 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-4 { display: grid; justify-items: center; align-items: center; } .animarte-circles--rotating-4 .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-duration: var(--animarte-speed); animation-iteration-count: infinite; animation-timing-function: linear; } .animarte-circles--rotating-4 .animarte-circles__element:nth-child(1) { animation-name: circlesRotating4Element1; } .animarte-circles--rotating-4 .animarte-circles__element:nth-child(2) { animation-name: circlesRotating4Element2; } @keyframes circlesRotating4Element1 { 0% { transform: rotate3d(0, 0, 0, 0deg); } 100% { transform: rotate3d(1, 0, 1, 1turn); } } @keyframes circlesRotating4Element2 { 0% { transform: rotate3d(0, 0, 0, 0deg); } 100% { transform: rotate3d(0, 1, 1, 1turn); } }