Sign

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-sign

About 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

More cards

See all

7h42m

SleepGet code

SorbetGet code

Walk

4,152steps

StrideGet code
Nova
Receive48
Kite
SwapGet code