A dashed circular border that rotates slowly. Reads as 'working' without the urgency of a solid arc, so it suits background sync and autosave indicators.
<div class="ldr-dashed-ring" role="status" aria-label="Loading"></div>
.ldr-dashed-ring {
--s: var(--ldr-size, 48px);
--c: var(--ldr-color, #3b82f6);
width: var(--s);
height: var(--s);
border: calc(var(--s) / 14) dashed var(--c);
border-radius: 50%;
animation: ldr-dashed-ring-spin 2.4s linear infinite;
}
@keyframes ldr-dashed-ring-spin {
to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
.ldr-dashed-ring, .ldr-dashed-ring *, .ldr-dashed-ring::before, .ldr-dashed-ring::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.