In Proportion
Each worry builds word by word, shrinks to a dim note, and a bigger accent reply answers it. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/in-proportionUsage
// src/Root.tsx
import { Composition } from "remotion";
import { InProportion } from "@/components/remocn/in-proportion";
const InProportionScene = () => (
<InProportion
pairs={[
{ worry: "It will look templated.", answer: "It will look like your app." },
{ worry: "I will drown in keyframes.", answer: "You will write a component." },
]}
/>
);
export const RemotionRoot = () => (
<Composition
id="InProportion"
component={InProportionScene}
durationInFrames={400}
fps={60}
width={1280}
height={720}
/>
);A worry builds word by word in large white type, then shrinks into a dimmed note in the top corner while the answer rises in the accent color along the bottom. The next pair repeats. Pass pairs as { worry, answer } objects; timing compresses to fit the composition and leaves about 18% hold at the end. It ships light and dark.
Props11
| Prop | Type | Default |
|---|---|---|
| pairs | { worry: string; answer: string }[]DEFAULT_PAIRS Worry and answer pairs, played in order; two or three work best. | |
| stagger | number3 Frames between words as a line builds. | |
| shrink | number24 Frames the worry takes to shrink into a side note. | |
| accent | string— Color of the answer text; overrides the theme accent. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Hubot Sans" 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. | |
- pairs{ worry: string; answer: string }[]
Worry and answer pairs, played in order; two or three work best.
Default
DEFAULT_PAIRS - staggernumber
Frames between words as a line builds.
Default
3 - shrinknumber
Frames the worry takes to shrink into a side note.
Default
24 - accentstring
Color of the answer text; overrides the theme accent.
- 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
"Hubot Sans" - 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"