axi-designv1.50.0

Feedback

Spinner

The family diamond, turning. It animates transform only, so it keeps moving when the main thread is blocked by the work it is reporting on.

.axi-spinner

Rule 11 is why this is a rotation and not a growing bar. A spinner animated by layout or paint freezes with the work it reports on, and a frozen spinner tells the reader the app has crashed at the exact moment it is working hardest.

The loop runs 45deg to 405deg - one full turn that starts and ends on the motif. That also makes it correct under prefers-reduced-motion for free: base.css collapses the animation to a single instant iteration but never sets animation-fill-mode, so once that instant run finishes the element reverts to its specified transform: rotate(45deg) - the motif at rest, which looks exactly like where the loop begins.

A spinner alone only ever conveys "busy" to a sighted reader; it carries no text and no state anyone else can query, so pair it with role="status" on the region reporting the work, or with an .axi-sr-only label naming what is happening - the same class this project already reaches for whenever something needs to be read but not seen.

Beside a label

Parsing…
<div class="axi-row"><span class="axi-spinner"></span> Parsing…</div>

Larger, on its own

<span class="axi-spinner" style="--axi-spinner-size: 34px"></span>

Knobs

PropertySetsFallback
--axi-spinner-sizethe size of an .axi-spinner20px

Rules this answers