Crystal

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/slider-crystal

About this component

A growth slider: crystals grow along the filled part of the track, each faceted point popping up on an overshooting spring as the thumb reaches it and shrinking back when you drag away.

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

Triggers3

  • State change
  • Spring
  • Fill

Techniques4

  • clip-path
  • CSS transition
  • Pseudo elements
  • CSS variables

Accessibility

Keyboard and screen readers

A native range input named Growth; the crystals are aria-hidden.

Reduced motion

They appear and vanish without the spring.

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

More sliders

See all
CymaticsGet code
DiscoGet code
FerroGet code
FibreGet code