Emboss

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/slider-emboss

About this component

A letterpress slider: a groove pressed into cotton stock and inked red up to the thumb, a blind-embossed disc with an inked ring that sinks into the sheet when held, debossed ticks and the value pressed in above.

Triggers

  • State change
  • Click
  • Fill

Techniques

  • CSS variables
  • Radial gradient
  • CSS transition

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native range input named "Impression" by aria-label, so arrow keys, Home and End work; everything drawn is aria-hidden. :focus-visible on the input outlines the thumb.

Reduced motion

The transitions and ambient animation are switched off and the thumb simply follows the value.

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

More sliders

See all
FitGet code
FrostGet code
HausGet code
HoloGet code