Acronym Expand
Acronym expand for Remotion: a short acronym like MCP or SDK unfolds letter by letter into its full name, with a small eyebrow label above and a subhead below.
In Remotion, Acronym Expand shows an acronym like MCP that expands letter by letter into its full name, with a small eyebrow label above and a subhead below. Use it for a feature-naming beat in a launch or developer-tool video, when initials need to be spelled out for the viewer.
$ pnpm dlx shadcn@latest add @remocn/acronym-expandHow to build this in Remotion
You don't have to build it from spring(), Sequence and @remotion/transitions. Install the component and pass the short and full forms:
npx shadcn@latest add @remocn/acronym-expandIt is a single scene with no Sequence or TransitionSeries: the letters spread and unfold with interpolate() on Easing.bezier curves, and the eyebrow and subhead fade in after. Word widths are measured on a canvas before the first frame (held with delayRender), so the full name lands centered without a layout jump. Move the expansion with expandAt and expandLength, in 30 fps frames.
Good to know
- Length: 86 frames of motion at 30 fps (172 at 60 fps) with the default props; the demo plays 120 frames, which adds a hold. The timing is fixed: a longer composition only holds the last frame longer. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, 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. - Font: loads Sora and JetBrains Mono itself through
@remotion/google-fonts; you don't need to set up Sora. PassfontFamilyto use your own face, and load that font in your project.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { AcronymExpand } from "@/components/remocn/acronym-expand";
const AcronymExpandScene = () => (
<AcronymExpand
short="SDK"
full="Software Development Kit"
eyebrow="Now available"
accent="#3B5BFD"
/>
);
export const RemotionRoot = () => (
<Composition
id="AcronymExpand"
component={AcronymExpandScene}
durationInFrames={240}
fps={60}
width={1280}
height={720}
/>
);The short form appears first, its letters spread apart and unfold into the full words, then the eyebrow and subhead fade in. Pass short, full, eyebrow and subhead to make it yours; it ships light and dark through theme.
Props14
| Prop | Type | Default |
|---|---|---|
| short | string"MCP" The acronym shown large before it expands | |
| full | string"Model Context Protocol" The full phrase the acronym expands into | |
| eyebrow | string"Now in remocn" Small label above the expanded phrase; empty to hide | |
| subhead | string"Your agent browses, installs and edits every component." One-line explanation under the phrase; empty to hide | |
| accent | string"#3B5BFD" Accent color (any valid CSS color) | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Overrides the theme's stage color | |
| fontFamily | string"Sora" Typeface for the copy. Sora loads by default; load any other face in your project first. | |
| expandAt | number38 Frame the acronym starts expanding into the full name; the eyebrow and subhead follow it. | |
| expandLength | number26 Frames each letter takes to travel to its place in the full name. | |
| 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 | |
- shortstring
The acronym shown large before it expands
Default
"MCP" - fullstring
The full phrase the acronym expands into
Default
"Model Context Protocol" - eyebrowstring
Small label above the expanded phrase; empty to hide
Default
"Now in remocn" - subheadstring
One-line explanation under the phrase; empty to hide
Default
"Your agent browses, installs and edits every component." - accentstring
Accent color (any valid CSS color)
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Overrides the theme's stage color
- fontFamilystring
Typeface for the copy. Sora loads by default; load any other face in your project first.
Default
"Sora" - expandAtnumber
Frame the acronym starts expanding into the full name; the eyebrow and subhead follow it.
Default
38 - expandLengthnumber
Frames each letter takes to travel to its place in the full name.
Default
26 - 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"
Common questions
How would I build a Remotion scene where an acronym like MCP expands letter by letter into its full name?
Install Acronym Expand with npx shadcn@latest add @remocn/acronym-expand and pass short="MCP", full="Model Context Protocol", plus eyebrow and subhead.
Which packages does it pull in?
remotion and @remotion/google-fonts from npm, and the remocn helpers glide, frame-rate and timeline. No @remotion/transitions or @remotion/layout-utils.
Related effects
- Tracking In: a plain headline with nothing to expand.
- Typewriter: text typed on with a caret.
- Line-by-Line Slide: a long name that would shrink too small.
- Name Gloss: a two-part product name unpacked word by word.