Known Terms
Term and definition pairs push each other into place, building to an accent-colored final line. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/known-termsUsage
// src/Root.tsx
import { Composition } from "remotion";
import { KnownTerms } from "@/components/remocn/known-terms";
const KnownTermsScene = () => (
<KnownTerms
pairs={[
{ video: "A scene", dev: "a component." },
{ video: "An edit", dev: "a commit." },
{ video: "Your launch", dev: "a deploy." },
]}
/>
);
export const RemotionRoot = () => (
<Composition
id="KnownTerms"
component={KnownTermsScene}
durationInFrames={360}
fps={60}
width={1280}
height={720}
/>
);A term appears alone in the center, then slides left as its counterpart pushes in from the right with a dim joiner word between them. Earlier pairs dim as new ones stack beneath, and the last pair turns the accent color. Pass pairs as { video, dev, joiner? }; joiner sets the default connector word. Timing adapts to the composition length; 159 frames assumes five pairs in 180. It ships light and dark.
Props11
| Prop | Type | Default |
|---|---|---|
| pairs | { video: string; dev: string; joiner?: string }[]DEFAULT_PAIRS Term and counterpart pairs; a pair's own joiner overrides the default. | |
| joiner | string"is" Default connector word shown between the two halves. | |
| hold | number33 Frames the last pair holds at the end. | |
| accent | string— Color of the final pair; overrides the theme accent. | |
| 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. | |
- pairs{ video: string; dev: string; joiner?: string }[]
Term and counterpart pairs; a pair's own joiner overrides the default.
Default
DEFAULT_PAIRS - joinerstring
Default connector word shown between the two halves.
Default
"is" - holdnumber
Frames the last pair holds at the end.
Default
33 - accentstring
Color of the final pair; 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
"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"