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.
Inside, the faint lines are the pen's route and the numbers its writing order. Each stroke is uncovered at one steady speed, so longer strokes take longer, with a short lift between.
Wiped on uncovers the finished word from left to right, cutting straight through the letters. Written follows the pen along each stroke, in the order a person writes.
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.
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.
Your settings
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 GitHubWhat it is
The full explanation is in README.md.