06.09 · 3D & Advanced

SVG Path Animation

A line drawing draws itself, stroke by stroke. Best for icons and logos.

Watch it

It plays by itself. Turn on slow motion to see each part of the movement.

Try it

Change a setting and the animation plays again.

Drawing

What is drawn: an icon, a signature or a logo.

Speed

How long each line takes to draw.

Line thickness

Thin looks precise; thick looks bold.

More optionsFewer options

Feel

Smooth slows at the end, like a hand finishing.

Line color

The color of the lines.

Draws each line from its end back to its start.

Fills the shapes once the lines are drawn.

Copy the prompt

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

Add a self-drawing line to [your icon, logo or signature, drawn as SVG lines]. Measure the length of each line, hide it behind a dash exactly as long as the line, then slide the dash away so the line appears from one end to the other, as if drawn by hand. Draw several lines one after another, each starting a little after the one before. When the settings include it, fill the shapes once the lines are done. The finished drawing should be there for screen readers from the start. If the visitor has reduced motion turned on, show the drawing complete. 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

  • Icons
  • Logos
  • Signatures
  • Illustrations

Avoid on

  • Photos
  • Body text