Script Cut
A one-line script is cut by accent ticks into shots, and each piece flies up to fill the frame. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/script-cutUsage
// src/Root.tsx
import { Composition } from "remotion";
import { ScriptCut } from "@/components/remocn/script-cut";
const ScriptCutScene = () => (
<ScriptCut
shots={["We wrote the launch as one line,", "cut it twice,", "and every piece became a shot."]}
/>
);
export const RemotionRoot = () => (
<Composition
id="ScriptCut"
component={ScriptCutScene}
durationInFrames={400}
fps={60}
width={1280}
height={720}
/>
);The whole script appears as a small line along the bottom, then accent ticks drop in to cut it into pieces. Each shot lights up in turn and its words fly up from the row to fill the frame at large size, then exit for the next. Pass shots as the script split into phrases; timing adapts to the composition length, and 176 frames assumes the three defaults in 200. It ships light and dark.
Props12
| Prop | Type | Default |
|---|---|---|
| shots | string[]DEFAULT_SHOTS Script pieces in order; together they form the small line below. | |
| hold | number32 Frames the last shot holds at the end. | |
| stagger | number2 Frames between words as a shot flies up from the script. | |
| fontWeight | number500 Weight of the copy. | |
| accent | string— Color of the cut ticks and the lit shot. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Epilogue" 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. | |
| theme | "dark" | "light""dark" Light or dark palette. | |
- shotsstring[]
Script pieces in order; together they form the small line below.
Default
DEFAULT_SHOTS - holdnumber
Frames the last shot holds at the end.
Default
32 - staggernumber
Frames between words as a shot flies up from the script.
Default
2 - fontWeightnumber
Weight of the copy.
Default
500 - accentstring
Color of the cut ticks and the lit shot.
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Epilogue" - 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 - theme"dark" | "light"
Light or dark palette.
Default
"dark"