Strokes and dashes
A stroke is the line along a path or a shape's edge: its colour, width, ends, corners and dash pattern. Animate the dash offset and the dashes travel along the line.
Step by step
Select the trail
Click Trail in the Layers panel: a thin line is easier to pick there than on the canvas.
Make it thicker
In Fill & stroke, type 10 in Width and press Enter. The Stroke swatch above it opens the same colour window as Fill, gradients included.
Round the ends
In Appearance, under Stroke style, click the round Line ends button: the line now ends in half circles. The Line join buttons below it shape the corners the same way.
Dash it
Type 0, 22 in Dashes and press Enter: dashes of no length, 22 apart. With round ends, each of them is a dot.
Start a Dash offset track
Click beside Dash offset, under Dashes. Dash offset gets its own row on the timeline, with a keyframe at the playhead.
Move the playhead to the end
Drag the red playhead along the time ruler to 3s, the end of the animation.
Move the dashes
Type -110 in Dash offset and press Enter, then press Space: the dots travel along the line. As 110 is five whole dash-and-gap lengths, they start over without a jump.
Keys
| Shift F | Add a dash offset keyframe at the playhead |
| Shift W | Add a stroke width keyframe at the playhead |
| Shift B | Add a stroke colour keyframe at the playhead |
| Shift D | Add a trim end (draw on) keyframe at the playhead |
| Alt I | Pick the stroke colour from the screen (in browsers with an eyedropper) |