Script Cut
A one-line script is cut by little accent ticks into segments, and each piece flies up to fill the screen as a separate shot, like a behind-the-scenes storyboard. A free, MIT-licensed Remotion text animation.
In Remotion, Script Cut lays one line of script along the bottom, cuts it into segments with little accent ticks, and flies each piece up to fill the screen like a separate shot. Use it for a behind-the-scenes or how-we-made-it beat.
$ pnpm dlx shadcn@latest add @remocn/script-cutHow to cut a script line into shots in Remotion
A single line of script cut by accent ticks into segments, each flying up to fill the screen in turn, is one component. You don't need TransitionSeries from @remotion/transitions or fitText to size each piece. Install it and pass the script as phrases:
npx shadcn@latest add @remocn/script-cut- The whole script appears small along the bottom, then accent ticks drop in between the phrases of
shots. - Each shot lights up in turn and its words fly up from the row (
staggerframes apart) to fill the frame at large size, then exit for the next one. The last shot holds forholdframes. - Timing adapts to the composition length: the shots share the
durationInFramesyou give it, spaced 34 to 84 frames apart (30 fps). - Per-shot timing: the
timingprop moves, trims or stretches therow, eachcut:<n>and eachshot:<n>by id, for exampletiming={{ "shot:1": { stretch: 1.5 } }}to hold the second shot longer. - Long phrases and many shots: the script row breaks over up to four lines and shrinks to fit the bottom of the frame, and each shot breaks over up to four balanced lines and shrinks to fill the area above the row. Three or four short phrases read best.
To remove filler words from a transcript use Filler Cut; to cut one word out and replace it use Scissors Cut.
Good to know
- Length: 176 frames of motion at 30 fps (352 at 60 fps) with the three default shots in a 200-frame composition; since timing follows the composition length, check the pacing in the preview after you change
shotsor the duration. Props counted in frames stay in 30 fps frames at any frame rate, see Frame rate. - Installs:
remotion,@remotion/google-fontsfrom npm, plus the remocn helpersglide,frame-rate,timeline. The shadcn CLI copies the source into your project; nothing else is needed at runtime. - Font: loads Epilogue itself through
@remotion/google-fonts. PassfontFamilyto use your own face, and load that font in your project.
Usage
// 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.
Props13
| 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. | |
| timing | Timing<"row" | `cut:${number}` | `shot:${number}`>— Per-shot timing: moves, trims or stretches the script row, each cut and each shot by id, in 30 fps frames. | |
- 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" - timingTiming<"row" | `cut:${number}` | `shot:${number}`>
Per-shot timing: moves, trims or stretches the script row, each cut and each shot by id, in 30 fps frames.