Out of Context
A bold claim stacks line by line, then a pulled-out phrase finishes it in the accent color. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/out-of-contextUsage
// src/Root.tsx
import { Composition } from "remotion";
import { OutOfContext } from "@/components/remocn/out-of-context";
const OutOfContextScene = () => (
<OutOfContext claim={"Stop making\nlaunch videos"} rest="by hand." />
);
export const RemotionRoot = () => (
<Composition
id="OutOfContext"
component={OutOfContextScene}
durationInFrames={260}
fps={60}
width={1280}
height={720}
/>
);The claim lines fly in, one drops out of alignment and is pulled across the frame, and the closing phrase arrives in the accent color. Pass claim (newlines split lines) and rest for the closing phrase; it ships light and dark through theme.
Props12
| Prop | Type | Default |
|---|---|---|
| claim | string"Stop making\nlaunch videos" Setup lines; newlines split rows | |
| rest | string"by hand." Closing phrase shown in the accent color | |
| dropAt | number40 Frame the claim's full stop drops away. | |
| pullLen | number40 Frames of the pull-back that reveals the rest of the line. | |
| accent | string— Accent color (any valid CSS color) | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Overrides the theme's stage color | |
| fontFamily | string"Outfit" 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 | |
| theme | "dark" | "light""dark" Ships light and dark palettes | |
- claimstring
Setup lines; newlines split rows
Default
"Stop making\nlaunch videos" - reststring
Closing phrase shown in the accent color
Default
"by hand." - dropAtnumber
Frame the claim's full stop drops away.
Default
40 - pullLennumber
Frames of the pull-back that reveals the rest of the line.
Default
40 - accentstring
Accent color (any valid CSS color)
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Overrides the theme's stage color
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Outfit" - 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
Default
1 - theme"dark" | "light"
Ships light and dark palettes
Default
"dark"