Dew

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/slider-dew

About this component

A slider whose thumb is a clear drop of water on a glass groove: drag it fast and it stretches out behind itself like a running drop, let go and it wobbles back round; it leaves a wet blue trail with a few beads of dew sitting on it.

Triggers

  • State change
  • Spring
  • Morph

Techniques

  • CSS variables
  • Spring
  • CSS transition

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A native range input (aria-label "Humidity") 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. The drop never stretches.

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
LoupeGet code
ReedGet code
VolumeGet code
WarmthGet code