Carbon

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/slider-carbon

About this component

A stiffness slider on a strip of carbon-fibre twill: behind the thumb the weave is cured under a glossy clear coat, deep and contrasty, with a highlight that follows your pointer like a light catching the fibres; ahead of the thumb it is dry cloth, matte and grey.

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

Triggers3

  • Hover
  • Mouse tracking
  • Fill

Techniques4

  • Gradient
  • Mouse tracking
  • Filter
  • CSS variables

Accessibility

Keyboard and screen readers

A native range input named Stiffness with gigapascals as its value text; the weave is aria-hidden. The highlight only follows a hovering pointer and rests over the cured part otherwise.

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

More sliders

See all
ColonyGet code
ContourGet code
CrosshatchGet code
CrystalGet code