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.
Inside, each line is all there from the start, hidden by a dash as long as the line; sliding the dash away uncovers it from the dot, in the numbered order.
Already there shows the finished drawing at once. Draws itself uncovers each line from one end, as if drawn by hand.
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.
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.
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.