Draw a shape and reveal it with Trim Paths
Draw a stroked rectangle with the Rectangle tool and animate Trim Paths End so the line draws itself on.
Playlist Shapes and masks
0 of 2 done
A line that draws itself on is one of the most used moves in motion design. It is a shape with a stroke, plus Trim Paths: two keyframes on End, from 0 % to 100 %. This lesson draws a frame around the title and animates it on.
Step 1 of 4
Pick the Rectangle tool and give it a stroke
Press Q or click the Rectangle in the tool row. Its options appear to the right of the tools: set FILL to None and STROKE to Solid, white, 8 px.
Trim Paths draws the stroke, so a shape with no stroke has nothing to reveal.
- QRectangle Tool
- ShiftQEllipse Tool

Step 2 of 4
Drag a rectangle in the viewer
Drag from the top-left corner to the bottom-right of where the frame should go. Premation makes a new shape layer called Rectangle at the top of the timeline and selects it.

Step 3 of 4
Add Trim Paths from Effects & Presets
With the Rectangle layer selected, open Effects & Presets. A Shape folder lists the shape operators while a shape layer is selected. Click Trim Paths once to add it.

Step 4 of 4
Keyframe End from 0 % to 100 %
Twirl open the layer: Contents now has Trim Paths Start, End and Offset. At 0:00:00:00 click the stopwatch next to Trim Paths End and set it to 0. Move to 0:00:01:00 and set 100.
Press F9 on the two keyframes for an eased draw. The frame now draws itself around the title.
- F9Easy Ease the selected keyframes

The frame draws itself
Animate Offset as well and the drawn part travels around the shape. Add a Repeater from the same Shape folder to copy the rectangle into a pattern.