7h42m
Sign
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardSign(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-signAbout this component
A signature pad in dark soft glass that writes a sample signature on its own when it appears. Draw with the pointer and ink flows under it, thicker on the slow strokes, with a cool wet sheen that dries in a second. Clear runs a rubber squeegee across the glass and takes the ink with it; Continue lifts the signature off the pad as a stamped line, tilts it a touch and turns green as Signed until you clear it.
Triggers
- Card
- Draw
- Click
- State change
- Ambient
Techniques
- requestAnimationFrame
- Event position
- CSS transition
- Keyframes
- Gradient
- CSS variables
- Filter
Difficulty
Advanced
Accessibility
Keyboard and screen readers
The card is a section labelled Signature. The pad is a role=img whose label changes between 'Signature pad, draw your signature' and 'Signature, signed'; the canvas is aria-hidden. Clear and Continue are native buttons, Continue exposing aria-pressed and relabelling itself Signed. Both buttons have visible focus rings.
Reduced motion
The sample signature is drawn at once, strokes paint without the wet sheen, and Clear and Continue switch states without animation.
Use it in anything you build, commercial and client work included. Licence