Pencil, then ink · 14 Nov
Inking
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardInking(el) on the mounted element instead.
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/card-inkingAbout this component
A sketchbook card whose drawing is still in pencil: loose construction rings, a wobbly doubled outline. Hover and it gets inked, one clean line drawing over the pencil, then the hatching and a grey wash, while the pencil is rubbed back; leave and it returns to the sketch.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers4
- Hover
- Draw
- Delay stagger
- Card
Techniques4
- SVG stroke
- stroke-dashoffset
- Transition delay stagger
- CSS transition
Accessibility
Keyboard and screen readers
An article labelled with the drawing's title; it takes focus, and focus or a tap inks it as hover does. The drawing is aria-hidden.
Reduced motion
The inked drawing appears at once.
Use it in anything you build, commercial and client work included. Licence
More cards
See allSalt & Iron
Wren Halloway
Hardback
312 pages
Background: Office
Plan the week
Pick three runs and the app spaces them out for you.
Belfries, beer halls and the Braderie