Window Trail
An orange window sweeps up over the old line and drags the new line in behind it. A free, MIT-licensed Remotion transition.
$ pnpm dlx shadcn@latest add @remocn/window-trailUsage
// src/Root.tsx
import { Composition } from "remotion";
import { WindowTrail } from "@/components/remocn/window-trail";
const WindowTrailScene = () => (
<WindowTrail
from="Old look."
text="New look, same product."
tagline="Repainted in one render."
/>
);
export const RemotionRoot = () => (
<Composition
id="WindowTrail"
component={WindowTrailScene}
durationInFrames={120}
fps={30}
width={1280}
height={720}
/>
);The from line sits on the field, then an orange window is thrown up over it, leaving a short trail of stamps. The text line is then dragged up from the bottom of the frame the same way, and the tagline rises in word by word underneath. Pass your own from, text and tagline; it ships light and dark, and the motion ends at frame 86 at speed 1.
Props13
| Prop | Type | Default |
|---|---|---|
| from | string"Old look." Outgoing line swept away first; empty skips the exit | |
| text | string"New look, same product." Incoming line that replaces it | |
| tagline | string"Repainted in one render." Small line that rises in word by word under the text | |
| slide | number30 Frames the incoming line takes to slide up into place | |
| tail | number4 Copies left in the trail behind a moving line | |
| accent | string— Window color; defaults to orange | |
| ink | string— Text color on the field; overrides the theme ink. | |
| background | string— Field color; pass transparent to composite over footage | |
| fontFamily | string"Familjen Grotesk" Typeface for the copy. Load the font in your project first. | |
| scale | number1 Size of the copy around the frame's center; the field and window stay put. | |
| delay | number0 Frames to hold the first frame before anything moves. | |
| speed | number1 Playback multiplier for the whole timeline | |
| theme | "dark" | "light""dark" Light or dark palette | |
- fromstring
Outgoing line swept away first; empty skips the exit
Default
"Old look." - textstring
Incoming line that replaces it
Default
"New look, same product." - taglinestring
Small line that rises in word by word under the text
Default
"Repainted in one render." - slidenumber
Frames the incoming line takes to slide up into place
Default
30 - tailnumber
Copies left in the trail behind a moving line
Default
4 - accentstring
Window color; defaults to orange
- inkstring
Text color on the field; overrides the theme ink.
- backgroundstring
Field color; pass transparent to composite over footage
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Familjen Grotesk" - scalenumber
Size of the copy around the frame's center; the field and window stay put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - speednumber
Playback multiplier for the whole timeline
Default
1 - theme"dark" | "light"
Light or dark palette
Default
"dark"