Trim Paths in After Effects is the tool behind most line animation you see in motion graphics: a stroke that draws itself on, an underline that sweeps under a title, a circle that fills up like a progress ring, a map route that travels from city to city. It is a single shape layer operator with only a few properties, but once you understand how Start, End and Offset work together you can build a surprising range of animations without any plugins.
This guide covers how to add Trim Paths, what each property does, four practical setups, and the problems people run into most often.
How to add Trim Paths in After Effects
Trim Paths only works on shape layers. It does not work on masks or on text layers directly, so the first step is always to get your artwork into a shape layer.
- Draw a path. With no layer selected, pick the Pen tool and click to draw. After Effects creates a new shape layer. In the toolbar, turn Fill off and give the shape a Stroke, because Trim Paths animates the stroke.
- Open the Add menu. Twirl open the shape layer in the timeline, or select the layer and click the Add arrow next to Contents.
- Choose Trim Paths. A Trim Paths group appears under Contents with Start, End and Offset properties.
If your artwork is an Illustrator file, right-click the layer and choose Create > Create Shapes from Vector Layer. For text, right-click the text layer and choose Create > Create Shapes from Text. Both give you a shape layer you can trim.
Start, End and Offset explained
Think of the path as a track that runs from 0% to 100%. Trim Paths only shows the part of the track between Start and End.
- Start is where the visible part begins. At 0% it begins at the first point of the path.
- End is where the visible part stops. At 100% the whole path is visible; at 0% nothing is.
- Offset slides the visible section along the path, measured in degrees. One full revolution (1x+0.0°) moves it once around the whole path.
- Trim Multiple Shapes controls what happens when the layer has several paths. Simultaneously trims each path at the same time; Individually trims them one after another, in stack order.
That is the whole tool. Every effect below is a different combination of these four settings.
Setup 1: a line that draws itself on
This is the classic. Set End to 0% at the start of the animation and 100% a second later. The stroke now grows from the first point of the path to the last. To make it feel less mechanical, select both keyframes, press F9 for Easy Ease, and open the Graph Editor to give the speed curve a strong ease out at the end.
If the line draws in the wrong direction, you do not need to redraw it. Animate Start from 100% down to 0% instead of End, and the stroke grows from the other end of the path.
Setup 2: a line that draws on and off
A line that appears and then disappears from the same end looks cleaner than one that fades out. Keyframe End from 0% to 100%, then a few frames later keyframe Start from 0% to 100%. The tail now chases the head. Offset the two animations by 4 to 8 frames for a short dash, or by more for a longer line.
This is the basis of most line accents, sparks and speed lines in title animation. It is also a good way to build leader-line callouts like the ones in our Infographics & CallOuts pack: a line draws on toward a label, holds, then retracts.
Setup 3: a progress ring or circular loader
Draw a circle with the Ellipse tool while holding Shift, turn off Fill, and give it a thick stroke. Add Trim Paths and animate End from 0% to the value you want to show, for example 72% for a 72% statistic. Set Line Cap to Round under Stroke for a softer end.
Two common fixes for rings:
- If the ring does not start at the top, change Offset while watching the comp until the start sits at 12 o’clock. Rotating the ellipse group with its own Transform works too.
- For a spinning loader, keep Start and End a fixed distance apart (for example Start 0%, End 25%) and add the expression
time*360to Offset. The segment then travels around the ring one full turn per second.
// On Offset: one full turn per second
time * 360
Setup 4: handwriting and signature text
Handwriting reveals are popular, and they are a good test of how Trim Paths really works. Converting a script font with Create Shapes from Text will not give you a clean result, because the letters are filled outlines, not single strokes. Trimming an outline draws around the edge of each letter.
The reliable method is to trace the text by hand with the Pen tool on a new shape layer, following the way you would write it, using a stroke at the width of the letters. Use the font as a guide underneath, then trim the traced stroke and hide the original text layer once the tracing is done. Set Trim Multiple Shapes to Individually so each traced stroke writes in order.
Common Trim Paths problems and fixes
- It looks like a wedge, not a line. The shape still has a fill. A fill is drawn across the trimmed path, so turn Fill off and use a stroke for line animation.
- Only some paths are trimmed. Trim Paths affects the paths above it in the same group. If it sits inside one group, other groups are untouched. Move it to the top level of Contents, below all the groups, to trim everything.
- All shapes animate at once. Switch Trim Multiple Shapes from Simultaneously to Individually.
- The line starts in the wrong place. Swap which property you animate (Start instead of End) on open paths, or change Offset on closed shapes.
- Dashes slide while trimming. Dashes are measured along the full path, so they can appear to crawl as the visible section changes. Animate the Dash Offset under Stroke > Dashes if you want to control that motion.
Speeding up line animation
Once you have built a few of these by hand, you will notice how repetitive the keyframing is. Saving your own setups as animation presets is the simplest fix: select the Trim Paths group with its keyframes, choose Animation > Save Animation Preset, and apply it to any new shape layer. If you would rather start from a library, our 2000+ Animation Presets pack includes ready-made animations for After Effects and Premiere, and Minimal Titles and CallOuts gives you finished title and callout designs to study and adapt.
FAQ
Does Trim Paths work on text in After Effects?
Not directly. Convert the text with Create Shapes from Text first, or trace the text with the Pen tool for a cleaner handwriting reveal.
Why does Trim Paths not work on my mask?
Trim Paths is a shape layer operator, so it only affects shape paths. Copy the mask path and paste it into a shape layer’s Path property to trim it.
How do I make a line draw from the middle outwards?
Set Start and End to 50% at the first keyframe, then animate Start to 0% and End to 100% at the same time.
What is the difference between Simultaneously and Individually?
Simultaneously trims every path in the layer at the same time. Individually treats all the paths as one long sequence and trims them one after another.
Studio list
Get new tools and free drops first
One email when a new plugin, template or free pack is out. No spam, unsubscribe any time.


