Marbling

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/slider-marbling

About this component

The fill is marbled ink, bands of two inks bent by a turbulence field: dragging the thumb combs it, faster drags pulling it into sharper feathers, and it relaxes back to soft marbling when you stop.

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

Triggers3

  • State change
  • Morph
  • Fill

Techniques4

  • SVG filter
  • requestAnimationFrame
  • Event position
  • CSS variables

Accessibility

Keyboard and screen readers

A native range input named Ink; the marbling is aria-hidden.

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

More sliders

See all
PicketGet code
RivetGet code
RugGet code
SawGet code