<div style="--size: 64px; --dot-size: 6px; --dot-count: 6; --color: #fff; --speed: 1s; --spread: 60deg;" class="dots"> <div style="--i: 0;" class="dot"></div> <div style="--i: 1;" class="dot"></div> <div style="--i: 2;" class="dot"></div> <div style="--i: 3;" class="dot"></div> <div style="--i: 4;" class="dot"></div> <div style="--i: 5;" class="dot"></div> </div>
.dots { width: var(--size); height: var(--size); position: relative; } .dot { width: var(--size); height: var(--size); animation: dwl-dot-spin calc(var(--speed) * 5) infinite linear both; animation-delay: calc(var(--i) * var(--speed) / (var(--dot-count) + 2) * -1); rotate: calc(var(--i) * var(--spread) / (var(--dot-count) - 1));