UNPKG

animarte

Version:

Making the digital world a little more animated place

64 lines (61 loc) 1.37 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-ellipsis { display: flex; justify-content: space-between; align-items: center; } .animarte-ellipsis__element { --width: 20%; --height: 20%; width: var(--width); height: var(--height); border-radius: 100vw; background: currentColor; animation-iteration-count: infinite; } .animarte-ellipsis--blinking-2 .animarte-ellipsis__element { animation-duration: var(--animarte-speed); animation-timing-function: ease-in-out; } .animarte-ellipsis--blinking-2 .animarte-ellipsis__element:nth-of-type(1) { animation-name: ellipsisBlinking2Left; } .animarte-ellipsis--blinking-2 .animarte-ellipsis__element:nth-of-type(2) { animation-name: ellipsisBlinking2Middle; } .animarte-ellipsis--blinking-2 .animarte-ellipsis__element:nth-of-type(3) { animation-name: ellipsisBlinking2Right; } @keyframes ellipsisBlinking2Left { 0%, 24.9%, 100% { opacity: 0; } 25%, 99.9% { opacity: 1; } } @keyframes ellipsisBlinking2Middle { 0%, 49.9%, 100% { opacity: 0; } 50%, 99.9% { opacity: 1; } } @keyframes ellipsisBlinking2Right { 0%, 74.9%, 100% { opacity: 0; } 75%, 99.9% { opacity: 1; } }