Three dots grow and shrink in sequence. Calmer than bouncing dots because nothing changes position, only scale.
<div class="ldr-pulsing-dots" role="status" aria-label="Loading"> <span></span><span></span><span></span> </div>
.ldr-pulsing-dots {
--s: var(--ldr-size, 48px);
--c: var(--ldr-color, #3b82f6);
display: flex;
gap: calc(var(--s) / 8);
}
.ldr-pulsing-dots span {
width: calc(var(--s) / 3.5);
height: calc(var(--s) / 3.5);
border-radius: 50%;
background: var(--c);
animation: ldr-pulsing-dots-scale 1.4s ease-in-out infinite both;
}
.ldr-pulsing-dots span:nth-child(1) { animation-delay: -0.32s; }
.ldr-pulsing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes ldr-pulsing-dots-scale {
0%, 80%, 100% { transform: scale(0); }
40% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
.ldr-pulsing-dots, .ldr-pulsing-dots *, .ldr-pulsing-dots::before, .ldr-pulsing-dots::after {
animation-duration: 3s;
}
}--ldr-color on the element or a parent.
Currently previewing #3b82f6.--ldr-size. Every dimension in the snippet is
derived from it. Currently previewing 64px.animation shorthand.
Delays on the children are relative, so they keep their rhythm.role="status" and an
aria-label so screen readers announce the wait. The reduced-motion rule
at the end slows the animation for users who asked for less motion.