Ink Reveal
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardInkReveal(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-ink-revealAbout this component
A liquid blob of ink trails the cursor across the card, a head and a tapering tail of droplets melting together through an SVG goo filter inside an alpha mask, and wherever it flows it reveals an inverted version of the card. A click floods the whole card.
Triggers
- Hover
- Click
- Mouse tracking
- Card
- Morph
Techniques
- SVG filter
- SVG
- Mouse tracking
- requestAnimationFrame
- Event position
Difficulty
Advanced
Accessibility
Keyboard and screen readers
The inverted face is aria-hidden; the visible card holds the real content.
Reduced motion
The blob snaps to the cursor without a trail.
Use it in anything you build, commercial and client work included. Licence