SVG Path Animator
Animate SVG paths with the stroke-dasharray technique — draw lines, shapes, and icons that trace themselves onto the screen.
More CSS Tools
How to Use SVG Path Animator
Create the classic SVG line-drawing animation effect — where a path appears to draw itself stroke by stroke — using the time-tested stroke-dasharray and stroke-dashoffset CSS technique. Paste or type an SVG path definition into the textarea, or click one of five preset shapes (Heart, Star, Arrow, Checkmark, Circle) to populate it. Set the SVG viewBox dimensions, pick a stroke colour and width, choose the animation duration and easing curve, then click Play Animation to watch the path trace itself. Toggle the Loop switch to make the animation repeat continuously. The tool outputs the CSS animation class with the correctly calculated dasharray/dashoffset values and the @keyframes draw definition — plug it into any SVG element to get the same line-drawing effect.
About SVG Path Animator
Details & Tips
Frequently Asked Questions
How does the SVG line-drawing animation technique work?
What is stroke-dasharray?
What is stroke-dashoffset?
How do I get the exact length of an SVG path?
What preset SVG shapes does the tool provide?
Can I paste my own SVG path data?
What should the dasharray value be set to?
How do I animate multiple paths in sequence?
What stroke-linecap is best for the drawing effect?
Does the animation work with filled SVG shapes?
Can I loop the drawing animation continuously?
Is my data sent to a server?
Part of These Collections
Also Available As
svg path animator, svg line drawing, stroke dasharray animation, svg stroke animation, svg drawing effect, svg path animation, stroke dashoffset, svg icon animation, animated svg, svg line animation, draw svg path
Explore More Tools
View all toolsFound a Problem?
Let us know if something with SVG Path Animator isn't working as expected.
Thanks — we'll take a look.