A five by five dot matrix where a pulse spreads from the center dot outward in rings, each dot swelling as the wave passes. Delays come from each dot's real distance to the middle.
Also known as: dot matrix pulse, 5x5 dots loader, radial dots wave.
<div class="ldr-dot-grid-ripple" role="status" aria-label="Loading"> <span style="--d:2.83"></span><span style="--d:2.24"></span><span style="--d:2.00"></span><span style="--d:2.24"></span><span style="--d:2.83"></span> <span style="--d:2.24"></span><span style="--d:1.41"></span><span style="--d:1.00"></span><span style="--d:1.41"></span><span style="--d:2.24"></span> <span style="--d:2.00"></span><span style="--d:1.00"></span><span style="--d:0.00"></span><span style="--d:1.00"></span><span style="--d:2.00"></span> <span style="--d:2.24"></span><span style="--d:1.41"></span><span style="--d:1.00"></span><span style="--d:1.41"></span><span style="--d:2.24"></span> <span style="--d:2.83"></span><span style="--d:2.24"></span><span style="--d:2.00"></span><span style="--d:2.24"></span><span style="--d:2.83"></span> </div>
.ldr-dot-grid-ripple {
--s: var(--ldr-size, 48px);
--c: var(--ldr-color, #3b82f6);
display: grid;
grid-template-columns: repeat(5, 1fr);
place-items: center;
width: calc(var(--s) * 1.1);
height: calc(var(--s) * 1.1);
}
.ldr-dot-grid-ripple span {
width: calc(var(--s) / 6.5);
height: calc(var(--s) / 6.5);
border-radius: 50%;
background: var(--c);
animation: ldr-dot-grid-ripple-pulse 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
animation-delay: calc(var(--d) * 0.24s - 1.8s);
}
@keyframes ldr-dot-grid-ripple-pulse {
0%, 40%, 100% { transform: scale(0.45); opacity: 0.3; }
14% { transform: scale(1.1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
.ldr-dot-grid-ripple, .ldr-dot-grid-ripple *, .ldr-dot-grid-ripple::before, .ldr-dot-grid-ripple::after, .ldr-dot-grid-ripple *::before, .ldr-dot-grid-ripple *::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.