Rainbow

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/loader-rainbow

About this component

A wooden rainbow stacker turned over as a rocker: seven painted arcs roll from side to side along the table on the outer arc. Each inner arc rocks a beat behind the one outside it, so a wave rolls through the stack.

Triggers

  • Loop
  • Delay stagger
  • Continuous

Techniques

  • Keyframes
  • Radial gradient
  • CSS variables
  • Stagger
  • Transform only

Difficulty

Intermediate

Moves on

Its code uses this curve. Open one to see it plotted and tune it.

Accessibility

Keyboard and screen readers

The root has role="status" and aria-label "Loading"; the arcs are aria-hidden.

Reduced motion

The stacker rests level on the table.

Use it in anything you build, commercial and client work included. Licence

More loaders

See all
SortGet code
SparkleGet code
SubpixelGet code
Tie-dyeGet code