Fountain-Pen Signature Pad

Motion Components · Vol. 1

Component

Fountain-Pen Signature Pad

Variants

The same markup works as a compact, plain 2D signature pad with no WebGL: sizes and states below. Same pen widths, same keyboard writing mode, same events.

Compact, midnight ink
Default: draw with a mouse, finger or pen
Disabled

Usage

Paste the markup, include assets/css/tokens.css and assets/css/tailwind.css, then run the script from this page.

Accessibility

  • Role and state. The pad is a labelled group with a description; ink colours are a real radiogroup. Every result ("Signature sealed", "Sheet torn off", "Ink cleared") goes through a polite live region.
  • Keyboard writing mode. Focus the pad, press Space to lower the pen, use the arrow keys to write (hold Shift for fine moves), Space again to lift. Delete or Backspace clears the sheet. "Sample signature" writes a flourish for you.
  • Reduced motion. With prefers-reduced-motion the pen does not auto-write on load, the tear-off and wax-seal animations and the sparks are skipped, and ink dries instantly. Writing itself still works.
  • Touch and pen. The pad sets touch-action none so drawing does not scroll the page, uses pointer capture and reads real pen pressure when the device reports it. Buttons are at least 40px tall.