Volume

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/slider-volume

About this component

A volume slider in a glass capsule with its speaker: the waves beside the speaker grow with the level, the fill glows blue, and a glass bubble with the number rises over the thumb while you adjust it.

Triggers

  • State change
  • Icon

Techniques

  • CSS variables
  • CSS transition
  • SVG

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native range input (aria-label "Volume") laid over the drawn track at zero opacity, so dragging, clicking, keys and screen readers all work as usual; the drawing is aria-hidden and :focus-visible outlines the thumb.

Reduced motion

The transitions and loops stop and the component jumps straight to its final state.

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

More sliders

See all
WarmthGet code
AcidGet code
ArcGet code
BearingGet code