Lap

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/loader-lap

About this component

A dash laps a rounded-square track like a car on a circuit: it stretches out on the straights and bunches up as it brakes into each corner.

Dependencies
None
Difficulty
Advanced
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers3

  • Continuous
  • Loop
  • Draw

Techniques3

  • SVG
  • stroke-dashoffset
  • Keyframes

Accessibility

Keyboard and screen readers

The root has role="status" and aria-label="Loading"; the drawing inside it is aria-hidden.

Reduced motion

The dash rests on the track.

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

More loaders

See all
LissajousGet code
Music boxGet code
PinwheelGet code
SkateboardGet code