Node Trail
A prompt node trails dotted lines to workflow nodes one by one, then the camera pulls back to the board. A free, MIT-licensed Remotion product scene.
$ pnpm dlx shadcn@latest add @remocn/node-trailUsage
// src/Root.tsx
import { Composition } from "remotion";
import { NodeTrail } from "@/components/remocn/node-trail";
const NodeTrailScene = () => (
<NodeTrail
prompt="A teaser for our spring release"
headline="One prompt. Every format."
boardName="spring-release.flow"
/>
);
export const RemotionRoot = () => (
<Composition
id="NodeTrail"
component={NodeTrailScene}
durationInFrames={193}
fps={30}
width={1280}
height={720}
/>
);A prompt field types your text and is pressed, then dotted lines draw out to each step node in turn, each arriving with a pop. The camera then pulls back to reveal the whole board with its name, and the headline rises in. Pass prompt, steps (label, icons, tint, columns), headline, and boardName to make it yours. It ships light and dark through theme.
The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.
Props19
| Prop | Type | Default |
|---|---|---|
| theme | "dark" | "light""dark" Light or dark interface. | |
| accent | string— Accent color for the prompt and trails. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Solid fill in place of the gradient ground; pass "transparent" to drop it. | |
| fontFamily | string"Geist" Typeface for the copy. Load the font in your project first. | |
| scale | number1 Size of the foreground around the frame's center; the background stays put. | |
| delay | number0 Frames to hold the first frame before anything moves. | |
| speed | number1 Playback speed multiplier for the whole timeline. | |
| prompt | stringDEFAULT_PROMPT The text typed into the prompt node. | |
| placeholder | string"Describe your launch" Placeholder shown in the prompt before typing. | |
| promptLabel | string"Prompt" Label above the prompt node. | |
| steps | NodeTrailStep[]DEFAULT_STEPS Nodes the trail visits: label, icons, tint, columns. | |
| headline | string"From one prompt to every screen." Closing headline shown after the camera pulls back. | |
| boardName | string"launch-film.flow" File name shown on the board chrome. | |
| draw | number22 Frames to draw the first edge; each later edge is a little quicker. | |
| pause | number10 Frames the camera rests on a node before the next edge; shrinks along the trail. | |
| motionBlur | booleantrue Blur along the camera's motion as it travels between nodes. | |
| ground | GshPresetId— Gradient shader preset for the background. | |
| groundParams | Partial<GradientParams>— Overrides for the shader preset parameters. | |
- theme"dark" | "light"
Light or dark interface.
Default
"dark" - accentstring
Accent color for the prompt and trails.
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Solid fill in place of the gradient ground; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Geist" - scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - speednumber
Playback speed multiplier for the whole timeline.
Default
1 - promptstring
The text typed into the prompt node.
Default
DEFAULT_PROMPT - placeholderstring
Placeholder shown in the prompt before typing.
Default
"Describe your launch" - promptLabelstring
Label above the prompt node.
Default
"Prompt" - stepsNodeTrailStep[]
Nodes the trail visits: label, icons, tint, columns.
Default
DEFAULT_STEPS - headlinestring
Closing headline shown after the camera pulls back.
Default
"From one prompt to every screen." - boardNamestring
File name shown on the board chrome.
Default
"launch-film.flow" - drawnumber
Frames to draw the first edge; each later edge is a little quicker.
Default
22 - pausenumber
Frames the camera rests on a node before the next edge; shrinks along the trail.
Default
10 - motionBlurboolean
Blur along the camera's motion as it travels between nodes.
Default
true - groundGshPresetId
Gradient shader preset for the background.
- groundParamsPartial<GradientParams>
Overrides for the shader preset parameters.