Crosshatch

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/slider-crosshatch

About this component

A shading slider drawn in pen on a strip of paper: the fill is hatching, and the darker you take it the more layers go down, one direction after another (diagonal, cross-diagonal, across, down), each fading in as the tone passes its quarter, the lines wobbling slightly as a hand draws them.

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

Triggers3

  • State change
  • Fill
  • Draw

Techniques4

  • Gradient
  • SVG filter
  • CSS variables
  • Pseudo elements

Accessibility

Keyboard and screen readers

A native range input named Shading with the percentage as its value text; the paper is aria-hidden.

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

More sliders

See all
CrystalGet code
CymaticsGet code
DiscoGet code
FerroGet code