Double Take
Double-take text slide for Remotion: a sentence crawls in, rewinds and zooms onto one phrase like One person in pink on blue, under a Read that again cue.
In Remotion, Double Take is a slide for a surprising claim: a sentence crawls in word by word, stops, then rewinds and zooms onto one phrase, "One person" by default, which lights up in pink on a blue background under a small "Read that again." cue. Use it for a team-size or time-to-make stat that deserves a second look.
$ pnpm dlx shadcn@latest add @remocn/double-takeHow to build this in Remotion
You don't need fitText and a hand-tuned zoom. Install the component and pass the sentence, the phrase and the cue:
npx shadcn@latest add @remocn/double-takeOne scene with a schedule in timeline.ts: the words rise with a stagger, hold, then the view rewinds and zooms to focus, which recolors with interpolateColors. Motion uses interpolate() and Easing curves; the copy is measured before the first frame, held with delayRender.
Good to know
- Length: 134 frames of motion at 30 fps (268 at 60 fps) with the default props. That is the minimum for its
Sequence; add your own hold on top (the demo plays 160 frames). The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, see Frame rate. - Colors: the dark theme is a
#2445E5blue stage with#FFFFFFtext and a#FF8FB1pink phrase; the light theme is white with blue text and#E0457Bpink.accent,inkandbackgroundoverride them. - Length compresses: when
durationInFramesis shorter than the natural length, the motion speeds up to fit; a longer one holds the zoomed phrase. scalemakes the zoomed phrase bigger or smaller around the center.- Installs:
remotion,@remotion/google-fontsfrom npm, plus the remocn helpersglide,frame-rate,timeline. The shadcn CLI copies the source into your project. - Font: loads Outfit 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 { DoubleTake } from "@/components/remocn/double-take";
const DoubleTakeScene = () => <DoubleTake text="One person wrote this entire launch video over a single lunch break." focus="One person" cue="Read that again." />;
export const RemotionRoot = () => (
<Composition
id="DoubleTake"
component={DoubleTakeScene}
durationInFrames={320}
fps={60}
width={1280}
height={720}
/>
);A line crawls in word by word, stops, then rewinds and zooms back onto one phrase, which lights up in the accent color over a small cue line. Pass text, focus (the phrase to land on) and cue; it compresses to fit the composition length.
Props13
| Prop | Type | Default |
|---|---|---|
| text | string"One person wrote this entire launch video over a single lunch break." The full sentence that crawls in. | |
| focus | string"One person" Phrase the view rewinds and zooms to. | |
| cue | string"Read that again." Small line shown above the highlighted phrase. | |
| accent | string— Color of the highlighted phrase; defaults to the theme accent. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Stage fill color; pass "transparent" to overlay your own footage. | |
| fontFamily | string"Outfit" Typeface for the copy. The default is loaded for you; load any other font in your project first. | |
| stagger | number3 Frames between words as the line rises in. | |
| hold | number8 Frames the line rests at the end before it rewinds. | |
| 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 multiplier for the whole timeline. | |
| theme | "dark" | "light""dark" Color scheme; ships dark and light. | |
- textstring
The full sentence that crawls in.
Default
"One person wrote this entire launch video over a single lunch break." - focusstring
Phrase the view rewinds and zooms to.
Default
"One person" - cuestring
Small line shown above the highlighted phrase.
Default
"Read that again." - accentstring
Color of the highlighted phrase; defaults to the theme accent.
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Stage fill color; pass "transparent" to overlay your own footage.
- fontFamilystring
Typeface for the copy. The default is loaded for you; load any other font in your project first.
Default
"Outfit" - staggernumber
Frames between words as the line rises in.
Default
3 - holdnumber
Frames the line rests at the end before it rewinds.
Default
8 - 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 multiplier for the whole timeline.
Default
1 - theme"dark" | "light"
Color scheme; ships dark and light.
Default
"dark"
Common questions
How do I make a slide that says 'Read that again.' above a giant pink 'One person' on blue?
Install Double Take with npx shadcn@latest add @remocn/double-take. Those are its defaults; pass your own text, focus and cue.
What are the exact pink and blue?
#FF8FB1 on #2445E5 in the dark theme. Pass accent and background to match your brand.
Related effects
- Answer First: the question "Who made this video?" is answered by a big "A pull request."
- Inline Highlight: animate one word inside a sentence from a base color to a brand color.
- Word Pullback: the camera pulls back from a big word to reveal "The cinematic toolkit for every launch."