Skip to main content
April 2, 2026Jerron Smith/5 min read

Animating Shapes with Trim Paths and Gradient Effects

Master Advanced After Effects Shape Animation Techniques

Key Animation Methods Covered

Track Matte Text Reveals

Use animated bars as track mattes to reveal country labels. The bar layer gets turned off automatically but must be manually reactivated for the effect to work properly.

Trim Paths for Shape Layers

Shape layer exclusive effect that animates stroke-based paths. Works only with outlines and strokes, not fills, creating smooth draw-on animations.

Gradient Wipe Effects

Uses grayscale values from reference layers to create organic, cloud-based reveal patterns. Works with any layer type including video and images.

Track Matte Text Animation Workflow

1

Assign Track Matte

Set the text layer to use the animated bar as its track matte source in the track matte column

2

Reactivate Bar Layer

The bar layer automatically turns off when assigned as track matte - manually turn it back on to remain visible

3

Repeat for Each Element

Apply the same process to each country label, using its corresponding bar for the track matte effect

4

Position Number Labels

Place value numbers inside bars to use the same track matte, or outside bars if independent animation is needed

Track Matte Limitation

Numbers placed outside the bars cannot use the track matte effect and would fail if attempted. Position them inside the bars if you want the same reveal animation.

Shape Layer Exclusive Effects

Trim Paths

Creates write-on effects for stroke-based shapes. Animate the end property from 0% to 100% over time for smooth path reveals.

Repeater

Duplicates and repeats shape elements within the same layer. Useful for creating pattern effects and geometric designs.

Transform Effects

Includes twist, wiggle, and zigzag effects that can only be applied to shape layers for dynamic distortions.

Trim Paths vs Fill Shapes

Pros
Perfect for stroke-based outlines and paths
Creates smooth, professional write-on animations
Integrates seamlessly with shape layer properties
Animates from 0% to 100% over any duration
Cons
Only works with shape layers, not other layer types
Produces strange results with filled shapes
Cannot be applied to imported graphics or text
Limited to stroke-based elements only

Gradient Wipe Setup Process

1

Create Reference Layer

Make a solid layer and add fractal noise effect to generate cloud-pattern grayscale values

2

Apply Gradient Wipe

Add gradient wipe effect to target layer and set gradient layer to reference the fractal noise layer

3

Configure Source

Set gradient layer to pull from effects and choose the fractal noise as the grayscale source

4

Animate Completion

Animate the completion property from fully hidden to fully visible for organic reveal effect

Wipe Effect Comparison

FeatureLinear WipeRadial WipeGradient Wipe
Animation PatternStraight lineCircularOrganic/Cloud-based
Control MethodDirection angleCenter pointGrayscale reference
Visual ResultClean geometricRadial sweepNatural flowing
ComplexitySimpleSimpleRequires reference layer
Recommended: Use gradient wipe for organic, natural-looking transitions and reveals
Gradient Source Flexibility

The reference layer can be hidden and still work. You can use Photoshop files, images, or video as gradient sources instead of fractal noise for unique effects.

Shape Tool Anchor Point Limitation

Rectangle and other shape tool objects have fixed anchor points that cannot be manually edited. To change the starting point, rotate the shape within its transform properties rather than attempting to move anchor points.

Bezier Path vs Shape Path Objects

FeatureBezier Path (Pen Tool)Shape Path (Shape Tools)
Anchor Point ControlFull manual controlFixed positions
Shape PropertiesBasic path onlySize, roundness, etc.
EditabilityIndividual pointsParametric controls
ConversionCannot become shapeCan convert to bezier
Recommended: Use shape tools for parametric control, pen tool for precise anchor point placement

This lesson is a preview from our After Effects Course Online (includes software) and After Effects Certification Course Online (includes software & exam). Enroll in a course for detailed lessons, live instructor support, and project-based training.

Creating effective country labels requires a strategic approach to text animation. Begin by assigning your text elements to use the corresponding bar as a track matte—this technique allows the bar's animation to reveal the text progressively. When you apply this method, the bar layer automatically becomes invisible, so you'll need to manually re-enable its visibility. For instance, when setting up France's label, configure the track matte column to reference the France bar, then restore the bar's visibility. This same process applies to all countries: the United States text uses the US bar as its track matte, with the bar visibility restored afterward.

This approach creates a sophisticated animation where text appears to emerge from within the bars themselves, creating a cohesive visual narrative. The effect transforms static data into dynamic storytelling, making your charts more engaging for viewers.

When positioning numerical values, you have two strategic options that significantly impact your animation possibilities. Values placed outside the bars limit your track matte options—the technique described above won't work effectively because the text sits beyond the bar's boundaries. However, positioning numbers inside the bars opens up creative opportunities. With internal placement, you can apply the same track matte technique to have the bars reveal the numerical data, creating a unified animation sequence where both labels and values emerge together.

For shape layer animations, trim paths represents the gold standard for creating drawing-on effects. This shape layer-exclusive feature provides the equivalent functionality of the write-on effect but with more precision and control. To access these specialized tools, open your shape layer and locate the Add button—this reveals effects that exist nowhere else in After Effects.

These shape layer effects offer creative possibilities ranging from practical to experimental. While effects like twist and wiggle transform provide entertaining distortions, trim paths serves a more professional purpose. It excels at creating the illusion that your graphics are being hand-drawn in real-time.

Implementing trim paths requires a specific setup for optimal results. The effect works exclusively with stroke-based shapes—avoid using it with filled objects, as the results appear unpredictable and unprofessional. For a standard one-second animation, animate the End property from 0% to 100%. This creates a smooth, progressive reveal that feels natural and purposeful. The technique works particularly well for infographic elements, logo reveals, and technical diagrams where precision matters.


When working with filled shapes, trim paths produces inconsistent results that can undermine your professional presentation. Stick to outlined, stroke-based graphics for predictable, polished outcomes.

The gradient wipe effect introduces organic randomness to your animations through a sophisticated masking technique. This effect requires a reference layer—typically a solid with fractal noise applied—to control the animation pattern. Create a new solid layer and apply the fractal noise effect to generate a cloud-like pattern that will serve as your gradient map.

Fractal noise offers extensive customization beyond basic cloud patterns. In 2026, motion designers increasingly use custom gradient maps created in Photoshop or generated from video footage to achieve unique, branded animation styles. The beauty of gradient wipe lies in its versatility—you can use static images, animated footage, or procedurally generated patterns as your control layer.

To implement gradient wipe, apply the effect to your target layer (such as your grid), then specify your fractal noise layer as the gradient source. The effect reads the grayscale values of your reference layer, using lighter areas to reveal your content first, followed by darker regions. This creates an organic, non-linear animation that feels more natural than traditional linear wipes.

The reference layer can remain hidden throughout your composition—gradient wipe reads its pixel values regardless of visibility. This technique works across all layer types and scales beautifully for everything from subtle texture reveals to dramatic scene transitions. Contemporary motion designers often combine gradient wipe with other effects to create signature animation styles that distinguish their work.


Consider extending your animation by including the numerical values and color bars in your sequence. While the basic tutorial focuses on core techniques, professional implementations benefit from cohesive animation timing across all elements.

Shape layer anchor points present a unique challenge due to the parametric nature of shape tools. Unlike bezier paths drawn with the pen tool, shapes created with rectangle, ellipse, and polygon tools maintain special properties that enable dynamic adjustment of size, roundness, and other parameters. This flexibility comes at the cost of anchor point editability.

When trim paths doesn't start from your desired position, work within the shape's transform properties rather than attempting to modify anchor points directly. Access the shape's individual transform settings within the shape layer hierarchy and adjust the rotation value to reposition where the animation begins. A -180° rotation, for example, moves the starting point to the opposite side of your rectangle.

Converting parametric shapes to bezier paths enables full anchor point control but eliminates the dynamic properties that make shapes powerful for responsive design. In professional workflows, this trade-off rarely justifies the conversion unless specific anchor point manipulation is absolutely essential to your animation concept. The parametric nature of shape tools provides more value for most motion graphics applications, especially when working with data visualization where precise, adjustable geometries matter more than custom anchor point placement.

Key Takeaways

1Track mattes automatically disable the source layer - remember to manually turn it back on for visibility
2Trim paths effect only works on shape layers with strokes, not fills, and creates smooth write-on animations
3Numbers positioned inside animated bars can use the same track matte effect as the text labels
4Gradient wipe uses grayscale values from reference layers to create organic, cloud-based reveal patterns
5Shape layer exclusive effects like twist, wiggle, and repeater are only available within shape layers
6Shape tool objects have fixed anchor points that cannot be manually edited unlike pen tool paths
7Fractal noise creates cloud patterns by default but has many options for different visual effects
8Converting shape paths to bezier paths enables anchor point editing but removes parametric properties

RELATED ARTICLES