Scales

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/slider-scales

About this component

The fill is a row of overlapping metal scales in two staggered courses: the ones near the thumb ruffle up as it passes, each tipping by how close it is, and lie flat again behind it.

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

Triggers3

  • State change
  • 3D
  • Fill

Techniques4

  • 3D transform
  • CSS variables
  • CSS transition
  • Radial gradient

Accessibility

Keyboard and screen readers

A native range input named Armour; the scales are aria-hidden.

Reduced motion

They tip without transition.

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

More sliders

See all
SequinsGet code
SlacklineGet code
SmokeGet code
ToothpasteGet code