UNPKG

animarte

Version:

Making the digital world a little more animated place

53 lines (51 loc) 1.39 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 { display: grid; } .animarte-circles--pulsing-2 .animarte-circles__element { grid-area: 1/1; width: 100%; height: 100%; border-radius: 50%; background: currentColor; opacity: 0.5; animation-name: blinkKeyframes; animation-duration: var(--animarte-speed); animation-iteration-count: infinite; transform: scale(0); opacity: 1; } .animarte-circles--pulsing-2 .animarte-circles__element:nth-of-type(1) { animation-delay: calc(var(--animarte-speed) * 0.2 * 1); } .animarte-circles--pulsing-2 .animarte-circles__element:nth-of-type(2) { animation-delay: calc(var(--animarte-speed) * 0.2 * 2); } .animarte-circles--pulsing-2 .animarte-circles__element:nth-of-type(3) { animation-delay: calc(var(--animarte-speed) * 0.2 * 3); } .animarte-circles--pulsing-2 .animarte-circles__element:nth-of-type(4) { animation-delay: calc(var(--animarte-speed) * 0.2 * 4); } .animarte-circles--pulsing-2 .animarte-circles__element:nth-of-type(5) { animation-delay: calc(var(--animarte-speed) * 0.2 * 5); } @keyframes blinkKeyframes { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }