Animating an SVG line drawing is super nice and really easy. Chris Coyer has a great article on how to do this. What do you do if your SVG line starts drawing from the wrong place? DO NOT FEAR! I have a simple solution.

A Codepen example where I have moved the animation starting point for my triangle

Jump to heading The Problem — Drawing starts from the wrong place

In this Codepen example I have a weird looking triangle I drew. The triangle at first starts drawing from the bottom left of the triangle but I want it to start from the top of the triangle. This happens because an SVG will start drawing from the initial point, mine in this example was the bottom.

Jump to heading The Solution — “Moving” where the drawings starting point

To effectively “move” the starting point for the animation we need to cut the line in the place where we want to the animation to start from.

Select outline view to add and remove new points from your SVG
Select outline view to add and remove new points from your SVG


On left select the “Add anchor point tool”. On right the 3 new points I added to my triangle and select the middle point


The triangle in outline and normal view with the middle of my three points deleted.


The triangle in outline and normal view with the line now dragged out so that there is no visible gap.

It’s that easy. Questions, comments, examples of your awesome animations? Please get in touch. Thanks for reading!