StealThis .dev

Loading Variants

Six CSS-only loading animations — spinner, dots, bar, pulse, bounce, and ring — in multiple sizes.

Open in Lab
css
Targets: HTML

Code

Loading Variants

Six distinct CSS-only loading animations, each available in three sizes (sm, md, lg). Use them as drop-in replacements for any loading state — buttons, overlays, skeletons, or full pages.

Variants

NameAnimation
SpinnerRotating circle with a colored arc
DotsThree dots fading in and out in sequence
BarHorizontal progress bar with infinite fill
PulseExpanding ring pulse from a filled circle
BounceThree balls bouncing with stagger delay
RingDual-ring counter-rotation

Sizes

Each variant accepts a --size modifier class:

  • .sm — 16 px (or equivalent)
  • .md — 24 px (default)
  • .lg — 40 px

Accessibility

  • Wrap each loader in a container with role="status" and an aria-label describing the loading action
  • Loaders use @media (prefers-reduced-motion: reduce) to pause animations for users who prefer less motion