Light Trail Write
A point of light writes a script wordmark along a path, leaving a cooling trail that becomes the logo. A free, MIT-licensed Remotion logo animation.
$ pnpm dlx shadcn@latest add @remocn/light-trail-writeUsage
// src/Root.tsx
import { Composition } from "remotion";
import { LightTrailWrite } from "@/components/remocn/light-trail-write";
const LightTrailWriteScene = () => (
<LightTrailWrite
finish="accent"
accent="#3B5BFD"
speed={1}
/>
);
export const RemotionRoot = () => (
<Composition
id="LightTrailWrite"
component={LightTrailWriteScene}
durationInFrames={320}
fps={60}
width={1280}
height={720}
/>
);A point of light writes the path stroke by stroke, leaving a trail that cools behind it, then a sweep turns the script into the lit logo. Pass your own single-stroke SVG path and choose finish. This component renders on its own dark ground and has no theme prop.
Props11
| Prop | Type | Default |
|---|---|---|
| path | stringDEFAULT_PATH Single monoline SVG path to write; defaults to a script remocn. | |
| strokeWidth | number— Stroke width in path units; defaults to 3.4% of the path height. | |
| finish | "solid" | "accent""solid" Final look: lit white with a sheen, or lit in the accent. | |
| accent | string"#3B5BFD" Accent colour for the mark and highlights; any CSS colour. | |
| logo | React.ReactNode— Replaces the remocn mark. | |
| background | string"#050508" Background fill; pass "transparent" to drop it. | |
| write | number80 Frames the light takes to write the whole path. | |
| 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. | |
| grain | booleantrue Film grain over the scene. | |
| speed | number1 Playback multiplier for the whole timeline; 1 is normal speed. | |
- pathstring
Single monoline SVG path to write; defaults to a script remocn.
Default
DEFAULT_PATH - strokeWidthnumber
Stroke width in path units; defaults to 3.4% of the path height.
- finish"solid" | "accent"
Final look: lit white with a sheen, or lit in the accent.
Default
"solid" - accentstring
Accent colour for the mark and highlights; any CSS colour.
Default
"#3B5BFD" - logoReact.ReactNode
Replaces the remocn mark.
- backgroundstring
Background fill; pass "transparent" to drop it.
Default
"#050508" - writenumber
Frames the light takes to write the whole path.
Default
80 - 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 - grainboolean
Film grain over the scene.
Default
true - speednumber
Playback multiplier for the whole timeline; 1 is normal speed.
Default
1