Bearing

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/slider-bearing

About this component

The thumb is a chrome ball in a machined groove, and it truly rolls: its engraved bands turn over by the distance travelled divided by its radius while the studio highlight stays put, and the polished fill shows in its lower half.

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

Triggers3

  • State change
  • 3D
  • Gradient

Techniques4

  • CSS variables
  • @property
  • Gradient
  • Radial gradient

Accessibility

Keyboard and screen readers

A native range input named Roll; the ball and groove are aria-hidden.

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

More sliders

See all
BulbsGet code
ButterGet code
CarbonGet code
ColonyGet code