Strike Task

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-strike-task

About this component

A to-do row. Checking ticks the box with a pen stroke, then a hand-drawn scribble runs through the task text, out and back, as the text greys out; unchecking rubs it out.

Triggers

  • Click
  • State change
  • Draw
  • Delay stagger

Techniques

  • SVG stroke
  • stroke-dashoffset
  • Transition delay stagger
  • CSS transition

Difficulty

Beginner

Accessibility

Keyboard and screen readers

A native checkbox inside a <label>, so the task text is its name. The scribble and box are aria-hidden.

Reduced motion

Every transition is instant.

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

More checkboxes

See all
BounceGet code
ChargingGet code