Filmora
Filmora - AI Video Editor
Edit Faster, Smarter and Easier!
OPEN

How to Animate a Stroke in After Effects (Step-by-Step Guide)

Try Filmora As Alternative

  • Draw and animate in one panel. No layers or plugins.
  • Use Start/End sliders. Keyframes auto-generate.
  • Optimized for quick rendering and smooth results.
100% Security Verified | No Subscription Required | No Malware

Want to animate a stroke in After Effects for smooth line motion? Stroke animations shine for logo outlines, handwritten signatures, arrows, and route lines. It's a motion that suits video intros and explainers.

But creating this stroke animation in After Effects isn't simple. The challenge is getting the path, timing, and stroke length just right so your stroke looks smooth. A small change in how the line appears or disappears can make a big difference in how natural the motion looks.

This guide will help you understand what a stroke in After Effects means and show you the steps to create it. It'll also show an alternative if you prefer a faster setup for line animations. Let's get started.

guide to animate stroke in after effects

Part 1. What is Stroke Animation in After Effects?

Stroke animation in After Effects is the process of making a line or outline draw itself over time. Those lines create smooth paths that reveal shapes, text, or logos in motion. It's a motion graphics technique that turns static elements into something more dynamic.

what is stroke animation in after effects

The main tool to animate a stroke in After Effects is the Trim Paths feature. It lets you control the Start, End, and Offset of a stroke. By adjusting these values, you can define how the line appears, disappears, or moves along a specific path.

You can use stroke animation in many types of videos. It's often applied in:

  • Route animations for travel videos: Lines trace across a map to mark a journey or highlight each stop along the route.
  • Outline strokes in product showcases: Thin lines highlight product edges or reveal parts of a shape to show design details.
  • Handwritten logo or signature reveals: Strokes follow custom paths to imitate natural handwriting, adding a personal touch to branding.
  • Arrow indicators for explainers or infographics: Strokes draw arrows in sequence to direct the viewer's focus or connect one element to another.

Part 2. How to Animate a Stroke in After Effects – Step-by-Step

Before you start, you need to understand how the stroke effects in After Effects work. The idea is to draw a line that gradually appears across your screen, using simple shape layers and a keyframe-based animation. You'll use the Trim Paths feature to control when and how the stroke draws itself.

Method 1: Basic Stroke Animation with Trim Paths

Here's how to animate a stroke in After Effects using the Trim Paths feature:

Step 1
Create a Shape Layer
Start by adding your shape to the timeline. You can import an Illustrator file or create a shape directly inside After Effects using the Shape Tool. Both work the same way.
create a shape layer in after effects
If you're using an Illustrator file, right-click on it, select Create > Create Shapes from Vector Layer.
Step 2
Remove the Fill and Set the Stroke
We need to ensure our shape only has strokes. To do this, select your shape layer and head to the toolbar to set the Fill > None.
remove the fill of the shape
Next to the Fill option, set the Stroke to a solid color. Adjust the Stroke Width to control how thick the line appears.
set the stroke of the shape
Step 3
Add the Trim Paths Effect
In the Timeline panel, open your Shape Layer's dropdown, click Add, and choose Trim Paths. This feature lets you animate the Start and End points of your line.
add the trim path effect
Step 4
Animate the Stroke
Expand the Trim Paths section. Set End to 0% so the stroke is invisible, and click the Stopwatch beside End to create your first keyframe.
animate the stroke in after effects
Move the playhead a few seconds forward and set End to 100%. The stroke will now draw itself from start to finish.
Step 5
Smooth the Animation
Select both keyframes, right-click, and choose Keyframe Assistant > Easy Ease or press F9. This smooths the motion.
easy ease to smooth the motion

Now you have an animation of a stroke in After Effects using the Trim Paths. You can apply the same steps to different shapes, text outlines, or logos for creative reveals.

Method 2: Brush Stroke Animation

You can also create hand-drawn paint or ink effects using the After Effects brush stroke technique. This creates softer, natural edges that look like real brush paint rather than a clean digital line.

Follow the steps below to learn how to create one:

Step 1
Create a New Composition
Make a new comp and name it Brush Stroke 1. Keep it in HD resolution and set the duration to about five seconds.
Step 2
Draw the Base Line
Select the Pen Tool and draw a straight line across the screen. Hold Shift to keep it straight. Turn Fill > None and set the Stroke Width to around 6 pixels. Pick a color such as white for now.
use pen tool to draw a line
Step 3
Duplicate and Vary the Lines
Go to the shape layer, open the Content property, and duplicate the Path several times.
duplicate and vary the lines
Adjust the Path Position for each new line so they sit slightly below one another. Change some widths to 10 or 15 pixels to create a thicker, layered look. Around ten lines usually works well.
adjust the path positions
Step 4
Add Rough Edges
Click on the Lines layer, and head to the Effects & Preset panel.
apply effects to the lines layer
Search for Roughen Edges, and apply it to the Lines' Effect Controls.
find roughen edges and apply to layer
Set the Border around 4 and the Complexity near 10. This adds uneven edges, giving the line a textured, brush-like appearance.
adjust the effects' settings
Step 5
Add Trim Paths to Animate the Brush
Open the shape layer, head to Content, and click Add > Trim Paths. Ensure you add it to the entire group that contains all your duplicated lines, not just one line. This way, all the lines will animate together as a single brush stroke.
access the trim path in after effects
Expand the Trim Paths settings to adjust the Slider. Move the playhead to the start of the line stroke and set the Slider to 0%. Click on the Stopwatch icon beside the Slider to create your first keyframe. Then, move the playhead forward and change the Slider presentation to 100%. The stroke now draws across the screen as one unified motion.
set the keyframes for the animations

Now you have created a brush stroke in After Effects that animates across the screen. You can combine several brush strokes, adjust their colors, or bend their shape for a more artistic animation.

Bonus: Do You Really Need After Effects? Try the Alternative

Do you want to animate a stroke in After Effects but don't want a complex setup? In motion graphics, strokes do more than decorate. They guide the eye, trace paths, and reveal shapes with intent. You'll often use stroke animation in travel routes, logo reveals, explainer videos, or product highlights.

But, if your goal is to create these effects quickly, After Effects might not be the best fit. Animating a stroke in After Effects can take time and involve several setup steps. For those who prefer video editors that provide a simpler workflow, try an alternative editor like Wondershare Filmora.

animate stroke in filmora
Try It Free Try It Free
qrcode-img
Scan to get the Filmora App
secure-icon Secure Download

Filmora Version 15 has introduced a Pen Tool feature that also lets you create stroke animation like in After Effects. The difference is that everything happens in one place. You can draw on the video canvas, adjust curves, and animate the line's path without switching between multiple layers.

Compare Stroke Animations in After Effects vs Filmora

Take a look at the table below to see how Filmora stacks up against creating stroke animations in After Effects:

Feature After Effects Filmora
Main Stroke Tool Shape Layers with Trim Paths for line animation. Pen Tool with Stroke and Trim Path animation controls.
Workflow Complexity Requires multiple layers, effects, and keyframes. All adjustments in a single panel.
Learning Curve Steep for new users. Easy to learn.
Stroke Animation Controls Start, End, and Offset for timing. The Start and End slider settings appear right after activating the Trim Path.
Plugin Requirement Often needed for advanced styles. Stoke animations don't need a plugin in Filmora.
Rendering Speed Depends on comp size and effects. Optimized for faster exports.
Best For Complex motion graphics and custom animation rigs. Quick animations, intros, and tutorials.

How to Animate a Stroke in Filmora

Follow the steps below to create a stroke animation in Filmora:

Step 1
Start the Project and Add Assets
Open Filmora and start a new project. Import your video or image and drag it to the timeline. Adjust its position or size on the preview window to frame your scene properly.
Step 2
Draw the Path with the Pen Tool
On the toolbar menu above the timeline, go to Drawing Tools > Pen Tool.
access the pen tool in filmora
Then, you can draw your stroke on the preview screen.
create the stroke lines with pen tool
Click once to add straight points, or click and drag to make it curve.
When you finish drawing, right-click on the screen and select Stop to confirm your path.
Step 3
Customize the Stroke Style
Once you create a shape with the Drawing Tools, the Shape Editing panel will open on the right side of your screen.
Scroll to the Stroke section where you can set your line Color, adjust the Weight (thickness), or set Opacity. You can also pick from the Preset stroke style if you want a faster setup.
customize the stroke style
Step 4
Animate the Stroke with Keyframes
In the same panel, go to the Trim Path section. This tool can help add keyframes to your stroke lines.
Move the playhead to the start of the clip and set End to 0%. Click the Keyframe icon to mark the first frame.
set the start of the keyframe
Then, move the playhead forward and change End to 100%. The next keyframe will be added automatically.
This setting creates a smooth stroke animation that draws across the path.
set the end of the keyframe
Step 5
Preview the Stroke Animation
Play the video in the preview window to review the animation. Adjust the stroke timing or path shape if needed to make it flow naturally.

Conclusion

Learning to animate a stroke in After Effects is a useful skill for creating outlines, logo traces, or motion paths. It offers precise control but takes time to set up and adjust keyframes.

If you prefer a faster and simpler setup, Filmora's Pen Tool can achieve a similar stroke animation in After Effects with less effort. It lets you draw shapes on the canvas, adjust stroke styles, and animate the path directly in one place.

Filmora suits creators who want smooth stroke animations without a steep learning curve. Try it today and see how quickly your edits can be.

Filmora
AI Video Editing App & Software
Try It Free Try It Free
qrcode-img
Scan to get the Filmora App
Best tool for making videos anywhere for all creators!
Your Perfect First Video Edit Starts Here - No Experience Needed

💬 FAQs About Stroke Animation in After Effects

  • 1. Can I combine stroke animation with other effects in After Effects?

    Yes. You can mix stroke animation with glow, blur, or color gradient effects to make it stand out more. Many editors also combine it with motion blur or opacity changes to create smoother transitions and depth.

  • 2. How do I make my stroke animation look more natural or hand-drawn?

    Try using the Brush Stroke method instead of the basic Trim Path. Add the Roughen Edges effect or slightly vary the line width and speed to mimic hand-drawn strokes. Small imperfections help make the motion feel organic.

  • 3. How long should a stroke animation last?

    There's no fixed rule, but most After Effects stroke animation clips work best between 2-5 seconds. Keep it long enough for viewers to follow the motion but short enough to maintain flow with the rest of the video.

You May Also Like

Top 7 Subtitle Apps in 2025 to Add Captions Easily (Free & Paid)

Looking for the best subtitle apps this year? This guide covers free and paid options, along with a comparison chart and tips to choose the right app for captions.

Posted byJames Hogan|2025-11-12 09:48:22
A Detailed Lightroom Review: Know All Features and A Better Alternative

Discover the full feature breakdown of Adobe Lightroom 2025 and explore a more intuitive, AI-powered alternative for seamless photo and video editing.

Posted byJames Hogan|2025-11-12 09:48:00
What is Podcasting? A Simple Guide to Understanding How It Works

What is podcasting and how does it work? Get the answer to these questions and learn the basics of podcasting, how it’s created, and how to start your own podcast.

Posted byJames Hogan|2025-11-12 10:17:57
iMovie Stabilization: Fix Shaky Videos on Mac, iPhone & iPad Easily

Stabilize shaky videos effortlessly with iMovie stabilization. Get smoother footage with step-by-step guides and an alternative for Mac, Windows, iPhone, and Android.

Posted byJames Hogan|2025-11-12 10:14:38
Text-to-Speech Announcer Voice Generation Guide

If you want to generate an announcer voice with text-to-speech tools, here’s everything you need to know.

Posted byAndrew Murray|2025-11-12 09:58:56
Everything You Need to Know About Kdenlive Video Editor

Learn all about the Kdenlive video editor, from top features to an alternative if it falls short. Find out if it’s the ideal software for your video editing needs!

Posted byAndrew Murray|2025-11-12 09:57:30
Step-by-Step Guide on How To Resize Video in Davinci Resolve

Here are a number of tools used in the market to resize the videos. We are going to teach How to resize the video in Davinci Resolve and Fimora.

Posted byJames Hogan|2025-11-12 10:03:26