From the course: After Effects Apprentice: 14 Shape Layers

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Animating a line

Animating a line - After Effects Tutorial

From the course: After Effects Apprentice: 14 Shape Layers

Start my 1-month free trial

Animating a line

Now that we have our stroked path that goes along the course of this map, we'd like to animate this map path in some way. There's a couple of ways of doing that. One, the Dashes parameter inside Stroke has a parameter called Offset. Scrubbing or animating this parameter will move your dashes along your line. Notice that scrubbing towards the right makes my line go towards the right. If I want to reverse the direction of my path, I go up to Path, click the Reverse Direction, and now scrubbing a positive Offset will cause it to animate in the opposite direction. And you can do that with any shapes. All paths do have this Reverse Direction switch. The second approach is to use a shape effect that we saw earlier, Trim Path, to actually animate entire length of the path on and off. So I will turn on Trim Paths, twirl it open, set my End down to 0, then animate it to bring on my dashed line, and let it travel across my map. I can even set up an animation doing that. So you can draw it on or…

Contents