Two rings expand outward and fade, like drops hitting water. A calm, spacious loader for empty states and full-screen waits.
<div class="ldr-ripple" role="status" aria-label="Loading"> <span></span><span></span> </div>
.ldr-ripple {
--s: var(--ldr-size, 48px);
--c: var(--ldr-color, #3b82f6);
position: relative;
width: var(--s);
height: var(--s);
}
.ldr-ripple span {
position: absolute;
inset: 0;
border: calc(var(--s) / 16) solid var(--c);
border-radius: 50%;
animation: ldr-ripple-expand 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.ldr-ripple span:nth-child(2) { animation-delay: -0.75s; }
@keyframes ldr-ripple-expand {
0% { transform: scale(0); opacity: 1; }
100% { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.ldr-ripple, .ldr-ripple *, .ldr-ripple::before, .ldr-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.