Thin ice

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/slider-ice

About this component

A load slider on a slab of ice: up to half the ice holds, past that cracks start to spread from where the thumb stands, more of them and longer the heavier it gets, and near the top dark water seeps up through them and the thumb sinks.

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

Triggers3

  • State change
  • Draw
  • Fill

Techniques4

  • stroke-dashoffset
  • SVG
  • CSS variables
  • CSS transition

Accessibility

Keyboard and screen readers

A native range input named Load whose value text says when the ice is cracking.

Reduced motion

Cracks appear without drawing and the thumb does not rock.

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

More sliders

See all
LaceGet code
LawnGet code
LoomGet code
MachGet code