Mobile

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/loader-mobile

About this component

A hanging mobile in the mid-century manner: three balanced wire arms carry flat red, yellow, blue and black discs. Each arm sways on its own thread out of step with the others, so the discs swing through depth and pass one another.

Triggers

  • Loop
  • 3D
  • Delay stagger

Techniques

  • preserve-3d
  • Perspective
  • 3D transform
  • Keyframes
  • CSS variables

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 mobile is aria-hidden.

Reduced motion

The arms pause where they are.

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

More loaders

See all
QuillingGet code
RainbowGet code
SortGet code
SparkleGet code