Trim Paths in After Effects: 4 steps to a line that draws itself

HomeTrim Paths in After Effects: 4 steps to a line that draws itself

Trim Paths in After Effects: a line that draws itself

Trim Paths in After Effects: 4 steps to a line that draws itself

A line that draws itself, a route growing across a map, a logo drawn on screen… In After Effects, all of these are made with Trim Paths. What’s more, you don’t need a plugin. In this post, we build a self-drawing line in 4 steps. Then we cover a moving tail, a loop and drawing on logos and text.

Let us animate your logo

We make short videos that bring your logo, icons and text to life. Using After Effects? Try the light runner in our free Motion Suite extension. If you’d rather leave it to us, get a quote.

In short

  • Trim Paths only works on shape layers.
  • Keyframe End from 0% to 100%. As a result, the line draws itself.
  • When Start and End move together, you get a segment that travels along the path.
  • Use Offset to spin the line around the path and make a loop.
  • Convert logos and text to shape layers first.

3

Trim Paths settings: Start, End, Offset

0% → 100%

drawing with End

2

options for trimming several paths

What is Trim Paths?

Trim Paths is a shape layer operation that shows only part of a path. Start sets where the line begins. End sets where it stops. Both are percentages. Offset, on the other hand, slides the visible part along the path.

So when you keyframe these settings, the line comes to life. According to Adobe’s page on shape operations, the result is similar to the Write-on effect.

How to animate a line with Trim Paths: 4 steps

1. Draw the line on a shape layer

First, with no layer selected, draw a path with the Pen Tool (G). This creates a new shape layer. Then turn Fill off and Stroke on in the toolbar. Set the thickness with Stroke Width. Also, set Line Cap to Round Cap for rounded ends.

2. Add Trim Paths

Next, click the Add button on the layer’s Contents row. Choose Trim Paths from the list. Trim Paths affects the paths in the group it’s added to.

3. Keyframe End

Now set two keyframes on End inside Trim Paths. For example, 0% at 0 seconds and 100% at 1 second. Then select both keyframes and apply Easy Ease (F9). This way, the line starts and ends smoothly. To fine-tune the speed, see our post on easing.

4. Set the direction and order

If the line starts from the wrong end, reverse the path. To do this, use the direction button (Reverse Path Direction) on the Path row. Also, if the layer has several paths, check Trim Multiple Shapes:

OptionWhat it does
SimultaneouslyDraws all paths at the same time
IndividuallyDraws paths one after another
Start, End and Offset in Trim Paths
Example: as End goes from 0% to 100%, the line draws itself. Values are illustrative.

A moving tail and a loop

A segment that travels

This time, keyframe Start as well. But let Start begin a little after End. For example, End goes from 0% to 100% between 0 and 1 second. Start makes the same move between 0.3 and 1.3 seconds. As a result, the line enters at one end, travels and leaves at the other.

Loop with Offset

Want a light running around a closed shape, such as a circle? Set Start to 0% and End to 20%. Then Alt-click the stopwatch on Offset (Option on a Mac) and paste this code:

speed = 180; // degrees per second
time * speed

The short segment now spins around the shape forever. Offset works as an angle. So 360 degrees is one full turn. We cover other ways to loop in our post on loopOut.

A line that tapers like a pen tip

You can also taper the end of the line. In the Taper section under Stroke, raise Start Length and End Length. These settings are covered on Adobe’s Taper page. In the same section, Wave adds waves to the line.

Drawing on a logo or text

Since Trim Paths only works on shape layers, convert logos and text first:

  • Illustrator logo: Select the layer and run Layer › Create › Create Shapes from Vector Layer. According to Adobe, a matching shape layer appears and the original is hidden.
  • Text: Select the text layer and run Layer › Create › Create Shapes from Text. Each character gets its own shape group.

Then add Trim Paths to the top group. Want the letters drawn one by one? Set Trim Multiple Shapes to Individually. If the logo has a fill, draw the line first. Then bring in the fill by raising its Opacity from 0 to 100.

A light runner with Motion Suite

Our Motion Suite extension has a “Light Runner” look in its Glow tool. It adds a light that travels along the edge and leaves a fading tail. On shape and text layers, it takes the path straight from the vectors, using Trim Paths. Also, the “Neon Frame” look wraps the whole edge in a steady line of light. Motion Suite is free until 5 January 2027.

Why isn’t it drawing?

The line doesn’t show at all

Stroke may be off. Or the Stroke Width may be too thin. So first make sure Stroke is on.

Trim Paths isn’t in the Add menu

The layer isn’t a shape layer. Convert the text or Illustrator file to a shape layer first.

Everything draws at once

Trim Multiple Shapes is set to Simultaneously. To draw the paths one by one, choose Individually.

The line starts from the wrong end

The path runs the other way. Flip it with the direction button (Reverse Path Direction) on the Path row.

How do we make logo and line animations at CrazyPoint?

We are an agency based in Ankara. Design, animation and editing are done by the same team. The work moves in three steps:

  1. Idea: We talk about where the animation will be used and how it should feel.
  2. Animation: We animate the logo, lines and text in your brand’s style.
  3. Delivery: We deliver the video in Reels, Stories and landscape sizes.

The quote states the price based on the scope of the job. Need a shoot too? Shooting, editing and 3 rounds of revisions start at 15,000 TL + VAT.

Frequently asked questions

Does Trim Paths work on text layers?

Not directly. First convert the text with Layer › Create › Create Shapes from Text. Then add Trim Paths.

How long should a line animation be?

Short usually works best. For a logo draw-on, 1–2 seconds is often enough. For long lines, you can add a little more time.

Can I turn the expression into keyframes?

Yes. Select Offset and run Animation › Keyframe Assistant › Convert Expression to Keyframes. Then you can edit the keyframes by hand.

Is Motion Suite paid?

No. Motion Suite is free until 5 January 2027. Sign in with your Google account on the app page and download it.

Let’s draw your logo on

Tell us in a few sentences where the animation will be used. We will agree on the scope and send a written quote. For details, see our Video Production page.

Comments are closed