RemotionUI

Path Draw

SVG stroke reveal with auto-fit framing and multi-path stagger.

PrimitivePaths & shapesAdvanced

path-draw30fps · 960×540
Install
$ npx remotion-ui@latest add path-draw

Reveals a stroke with @remotion/paths evolvePath(), and rides a bright head along the tip while it draws. Pass an array to d to draw several paths in sequence — each starts staggerInFrames after the last.

Omit viewBox and the artwork is framed from its own bounding box, so a path exported anywhere on its canvas still lands centred and filling the frame. Set fill to flood colour in once the outline closes.

Advanced. Installs @remotion/paths.

Agent notes

Install first, then import the copied source component locally. AI guide →

Import
@/remotion/primitives/path-draw
  • Use when: frame-level motion primitives and reusable animation wrappers.
  • Customize: d, durationInFrames, delayInFrames, staggerInFrames, plus copied source for timing, layout, colors, and typography.
  • Rule: do not import this component from the remotion-ui npm package; it is copied into your project.

Usage

Example
import { PathDraw } from "@/remotion/primitives/path-draw"; <PathDraw d={["M 20 180 L 100 20 L 180 180", "M 60 120 L 140 120"]} durationInFrames={60} />

API Reference

PropTypeDescription
d*string | string[]One path, or several drawn in order.
durationInFramesnumberDraw length for each path.
delayInFramesnumberFrames before the first path starts.
staggerInFramesnumberOffset between paths when d is an array.
strokestringStroke color.
strokeWidthnumberStroke width in path units.
widthnumberRendered SVG width in px.
heightnumberRendered SVG height in px.
viewBoxstringOmit to frame the artwork from its bounding box.
fillstringFill flooded in once the stroke closes.
headbooleanDot riding the tip while it draws.
glowbooleanSoft bloom around the stroke.

Related