05.18 · Text & Typography

Handwriting Draw

A word writes itself stroke by stroke, as if by a pen. Best for greetings and signatures.

Watch it

It plays by itself. Turn on slow motion to follow the pen stroke by stroke.

Try it

Change a setting and the animation plays again.

Word

Which word the pen writes: the joined letters first, then any dots and crosses.

Pen speed

How fast the pen moves along the line.

Ink color

The color of the ink, and of the pen.

More optionsFewer options

Pen size

Fine looks like a ballpoint; bold, like a marker.

A small pen rides on the tip of the line and lifts between strokes.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add a handwriting animation to [your word or signature, drawn as single SVG lines]. Write it with pen lines instead of filled letters, split into strokes in the order a person writes them: the joined letters first, then the dots on the i's and the crosses on the t's. Hide each stroke behind a dash as long as itself and slide the dash away, one stroke after another, at one steady pen speed, so longer strokes take longer, with a short pause where the pen lifts. When the settings include it, let a small pen ride on the tip of the line. Screen readers should get the word as text. If the visitor has reduced motion turned on, fade the finished word in instead. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Greetings and thank-you notes
  • Signatures
  • Page intros
  • Invitations

Avoid on

  • Long text
  • Small text