Strike Task
Markup where the component goes, CSS in your stylesheet. No JavaScript.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/checkbox-strike-taskAbout 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