Signature handwriting animation

The handwriting effect is the purest demonstration of scroll-driven path drawing: a single continuous path, drawn at the speed the reader scrolls. It works because a signature is already one long stroke, so the dash offset maps directly onto the pen travelling across the page. The one thing worth getting right is easing — a linear draw reads mechanical, while ease-out lands the way a hand actually lifts.

03one stroke · autoplay · onComplete

The code

A full site for a fictional e-signature product. The client's signature writes itself on the contract in one continuous stroke when it comes into view, and onComplete flips the field to signed and stamps the time; further down, the steps draw in turn and the audit trail's rail draws down the page with the reader.

Hero.tsx15 lines
const [signed, setSigned] = useState(false);

<div className={signed ? 'field is-signed' : 'field'}>
  <span className="tag">{signed ? 'Signed' : 'Sign here'}</span>
  <ScrollDraw
    autoplay duration={2400} delay={500}
    easing="ease-in-out" once
    onComplete={() => setSigned(true)}
  >
    <svg viewBox="20 40 380 190">
      {/* one continuous stroke, from the A to the flourish */}
      <path className="ink" d="M 32 196 C 46 190 62 165 …" />
    </svg>
  </ScrollDraw>
</div>
Quillmark, e-signatures for small firms: the first screen of its demo site

E-signatures for small firms

Quillmark

Live site

Related examples

Make your own in the handwriting animation generator or the SVG path editor: set it up, watch it run, copy the code.

MIT licensed, zero runtime dependencies. Every API is a separate entry point, so you only ship what you import. Full API reference →