Why Shape Layers Matter (and When to Use Them)
Shape layers are vector-based layers you build directly inside After Effects. They stay crisp at any scale, and—most importantly for motion graphics—they remain editable. Instead of baking a design into a single bitmap or relying on pre-made artwork, you can animate properties like Size, Path, Stroke, and even individual group transforms in a clean, modular way.
In practice, shape layers are ideal for UI-style labels, lower-thirds, icons, lines that “draw on,” and simple geometric motion graphics where you want maximum control and easy revisions.
Creating Basic Shape Layers
Method A: Shape Tools in the Viewer
- Select a shape tool (Rectangle, Ellipse, Polygon/Star) from the toolbar.
- Make sure no layer is selected if you want to create a new shape layer. (If a layer is selected, you may create a mask instead.)
- Click-drag in the Composition panel to draw.
- Hold
Shiftto constrain proportions (perfect square/circle). - Hold
Spacewhile dragging to reposition as you draw.
Method B: Create via the Layer Menu
Use Layer > New > Shape Layer, then add shapes from the shape layer’s Contents using the Add button (next to Contents in the timeline). This method encourages better organization because you intentionally build the layer’s structure.
Rectangles, Ellipses, and Polystars
- Rectangle: Great for buttons, labels, panels. Supports rounded corners via
Roundness. - Ellipse: Circles, dots, badges, toggles.
- Polystar: Can be a polygon or star. You can animate points, inner/outer radius, and rotation for quick graphic accents.
Fill vs. Stroke (and Why Order Matters)
Inside a shape group, Fill colors the interior; Stroke draws the outline. Both are separate items you can toggle, animate, and reorder.
- Fill key properties:
Color,Opacity. - Stroke key properties:
Color,Stroke Width,Line Cap,Line Join,Dashes(if added).
Order tip: In the group, items render from top to bottom. If you place Stroke above Fill, the stroke is drawn on top. This can matter when you want a crisp outline that doesn’t look partially covered by the fill (especially with thick strokes).
- Listen to the audio with the screen off.
- Earn a certificate upon completion.
- Over 5000 courses for you to explore!
Download the app
Understanding Shape Layer Organization (Contents, Groups, and Naming)
A shape layer is like a folder. Inside it, Contents holds one or more Groups. Each group can contain:
- A shape path generator (Rectangle Path, Ellipse Path, Polystar Path, or a custom Path)
- One or more styling operators (Fill, Stroke, Gradient Fill, etc.)
- One or more modifiers (Trim Paths, Repeater, Wiggle Paths, etc.)
- A Transform for that group (separate from the layer’s Transform)
For readability, rename groups and key items. A clean shape layer often looks like a mini “rig”:
Shape Layer: Label_BG+Line+Accent
Contents
Group: BG
Rectangle Path 1
Fill 1
Transform: BG
Group: Underline
Path 1
Stroke 1
Trim Paths 1
Transform: Underline
Group: Accent
Rectangle Path 1
Fill 1
Transform: AccentThis structure makes it obvious what each part does, and it prevents you from animating the wrong transform.
Animating Inside a Shape Group vs. Transforming the Whole Layer
Shape layers have two common places you can animate transforms:
| Where you animate | What it affects | Best for |
|---|---|---|
| Layer Transform (the layer’s Position/Scale/Rotation) | Everything in the shape layer | Moving the entire label across the screen, scaling the whole design together |
| Group Transform (inside Contents > Group > Transform) | Only that group | Animating parts independently (BG grows, underline draws, accent slides) while keeping the layer stable |
Rule of thumb: If you want a “component” animation (one part changes while others don’t), animate inside the group. If you want to reposition the entire finished element, animate the layer transform.
Path/Size/Position: Which One Should You Animate?
- Rectangle Path > Size: Best for a box growing/shrinking while staying editable (and keeping rounded corners via Roundness).
- Ellipse Path > Size: Best for circles/dots expanding.
- Path (custom Path): Best when you need a specific shape silhouette. More flexible, but can be harder to keep “clean” if you later want easy width/height edits.
- Group Transform > Position: Best for sliding a sub-element (like an accent block) without changing its geometry.
Guided Build: A Clean Animated Label (BG grows, line draws, accent animates)
You’ll build a simple label made of three groups: a rounded rectangle background, an underline that draws on, and a small color accent that animates in. The goal is not complexity—it’s clean structure and editable animation.
Step 1: Create One Shape Layer and Plan the Structure
- Create a new Shape Layer.
- Rename the layer to
Label. - Twirl open
Contents.
We will keep everything inside this single shape layer so it’s easy to move as one unit later using the layer’s Transform.
Step 2: Build the Background Group (Rounded Rectangle)
- In
Label > Contents, click Add and chooseRectangle. - Click Add again and choose
Fill. - Rename
Rectangle 1toBG(select the group name and press Enter). - Inside
BG, openRectangle Path 1and set:
Size: choose a label-like size (e.g., width 500, height 120) as a starting point.Roundness: increase until it feels like a pill/soft label (e.g., 30–60 depending on size).
Set Fill 1 color to a neutral background (light gray or dark slate—your choice).
Step 3: Make the BG Grow from an Anchor Point (Using Group Transform)
We want the rounded rectangle to “grow” from one side cleanly. Instead of scaling the entire layer, we’ll animate the rectangle’s Size and use the group’s transform to control where it grows from.
- Open
BG > Transform: BG. - Set
Anchor Pointto the left-center of the rectangle. A practical approach:
- Temporarily note the rectangle width (e.g., 500). Set Anchor Point X to
-250(negative half width) and Y to0. This places the anchor on the left edge of the group’s local space.
Now animate the rectangle’s size:
- Open
BG > Rectangle Path 1 > Size. - Set the first keyframe with a narrow width (e.g., width 0–20, height 120).
- Move forward in time and set the second keyframe to the full width (e.g., 500, 120).
Because the group anchor is on the left, the rectangle expands to the right, like a label “unfolding.” This stays fully editable: you can change the final width later without rebuilding.
Step 4: Build the Underline Group (A Line That Draws On)
We’ll create a simple path with a stroke, then use Trim Paths to animate it drawing on.
- In
Label > Contents, click Add and chooseGroup. - Rename the new group to
Underline. - Select
Underline, then click Add and choosePath. - Click Add and choose
Stroke.
Configure the stroke:
- Set
Stroke Width(e.g., 6–10). - Set
Line Capto Round Cap for a clean motion-graphics look. - Choose a color that contrasts the BG (often white on dark BG, or dark on light BG).
Draw the underline path:
- Open
Underline > Path 1and clickPath. - Use the Pen tool to create a simple horizontal line (two points). Place it near the bottom of the label.
Add Trim Paths and animate:
- Select the
Underlinegroup, click Add and chooseTrim Paths. - Open
Trim Paths 1and animateEndfrom0%to100%.
Clean-structure tip: Keep Trim Paths inside the Underline group so it affects only the underline, not the background or accent.
Step 5: Build the Accent Group (A Color Block That Animates)
The accent is a small rectangle that slides or reveals in a controlled way. We’ll keep it as its own group so its animation is isolated and easy to tweak.
- In
Label > Contents, click Add and chooseRectangle. - Click Add and choose
Fill. - Rename
Rectangle 2(or the new group) toAccent.
Set the accent rectangle:
- Open
Accent > Rectangle Path 1and set a small size (e.g., 40x40 or 20x120 depending on style). - Set
Roundnessto match the label’s softness (or keep it sharper for contrast). - Set
Fillcolor to a bright accent (e.g., teal, orange, magenta).
Animate the accent using the group transform:
- Open
Accent > Transform: Accent. - Animate
Positionso it slides in from slightly left to its final spot, or animateScalefrom 0 to 100 for a pop-in.
Why group transform here? The accent’s geometry stays constant (easy to resize later), while its motion is controlled independently.
Step 6: Keep the Timeline Readable (Naming and Property Hygiene)
- Rename key properties if needed by renaming groups and leaving default property names (AE relies on those internally).
- Only keyframe what you need: BG Size, Underline Trim Paths End, Accent Position/Scale.
- Use consistent group names:
BG,Underline,Accent.
If you ever need to move the entire label, use the Label layer’s Transform > Position. Avoid mixing “whole label” movement into group transforms—this separation is what keeps projects easy to revise.
Step 7: Common Fixes (When Something Feels Off)
- The BG grows from the center, not the side: Adjust
BG > Transform: BG > Anchor Pointfurther left (negative half width is a good starting point). - The underline draws from the wrong direction: In
Trim Paths, animateStartinstead ofEnd, or reverse the path direction by editing the path points. - The accent moves the whole label: You animated the layer’s Position instead of
Accent > Transform: Accent > Position. - Stroke looks squared at the ends: Set Stroke
Line Capto Round Cap.
Mini Checklist for “Clean, Editable” Shape Layer Builds
- One shape layer for one UI element (label), with multiple named groups inside.
- Animate geometry with
Rectangle Path > Sizewhen you want easy width/height edits later. - Animate sub-elements with
Group Transform; animate the whole element withLayer Transform. - Use
Trim Pathsfor line draw-ons instead of scaling a line. - Keep Fill/Stroke intentional and ordered for predictable rendering.