Pane

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/slider-pane

About this component

A thick stained glass slider where the whole pill is the fill: eight leaded panes that light up one after another, each in its own colour, as a lead grip is dragged across them, with a slow gleam drifting over the lit glass.

Triggers

  • State change
  • Glow
  • Ambient
  • Fill

Techniques

  • CSS variables
  • CSS transition
  • Keyframes
  • Gradient

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A native range input named "Saturation" 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 animations 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
PencilGet code
PopGet code
RisoGet code
ScrubGet code