Edge Fit
Edge-to-edge word montage for Remotion: each single word is scaled to fill the frame width, letters rising in, with a small caption and logo, in cream on navy.
In Remotion, Edge Fit is a word montage where each single word, like "recaps", is scaled to fill the frame edge to edge in cream on navy, its letters rising in one after another, with a small caption and logo beneath. Use it for a fast list of video types or features in a brand or launch video.
$ pnpm dlx shadcn@latest add @remocn/edge-fitHow to build this in Remotion
You don't need fitText from @remotion/layout-utils: the component measures each word and fits it for you. Install it:
npx shadcn@latest add @remocn/edge-fitEach word is measured on a canvas (measureText) before the first frame, held with delayRender, and sized to fit of the frame width. Letters rise with spring() and interpolate() on a schedule from timeline.ts.
Good to know
- Length: 112 frames of motion at 30 fps (224 at 60 fps) with the default props. That is the minimum for its
Sequence; add your own hold on top (the demo plays 150 frames). The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, see Frame rate. - Cream: the dark theme sets
#F3E9D2on#1B2A6Bnavy; the light theme swaps them. Passinkfor another color. fit={1}fills the full width; the default 0.9 leaves a margin.logodefaults to the remocn logo; pass your own node, ornullto hide it.- Installs:
remotion,@remotion/google-fontsfrom npm, plus the remocn helpersglide,frame-rate,timeline. The shadcn CLI copies the source into your project. - Font: loads Anton and Manrope 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 { EdgeFit } from "@/components/remocn/edge-fit";
const EdgeFitScene = () => (
<EdgeFit words={["intros", "teasers", "recaps"]} caption="Fresh from the registry" />
);
export const RemotionRoot = () => (
<Composition
id="EdgeFit"
component={EdgeFitScene}
durationInFrames={300}
fps={60}
width={1280}
height={720}
/>
);Each word is fitted to the full frame width and its letters rise in, one word after another, with a caption and logo beneath. Pass words, caption and your own logo; it ships light and dark.
Props14
| Prop | Type | Default |
|---|---|---|
| words | string[]["intros", "teasers", "recaps"] Words shown one at a time, each fitted edge to edge. | |
| caption | string"Fresh from the registry" Small line under the word. | |
| logo | React.ReactNode | null— Logo node under the word; null hides it. | |
| letterGap | number3 Frames between each letter rising in. | |
| hold | number14 Frames the text holds before the next beat. | |
| fit | number0.9 Share of the frame width each word fills, edge to edge. | |
| accent | string— Accent colour (any CSS colour). | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Overrides the theme background colour. | |
| fontFamily | string"Anton" Typeface for the copy. The default is loaded for you; load any other 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 multiplier; above 1 plays faster. | |
| theme | "dark" | "light""dark" Colour scheme; ships light and dark. | |
- wordsstring[]
Words shown one at a time, each fitted edge to edge.
Default
["intros", "teasers", "recaps"] - captionstring
Small line under the word.
Default
"Fresh from the registry" - logoReact.ReactNode | null
Logo node under the word; null hides it.
- letterGapnumber
Frames between each letter rising in.
Default
3 - holdnumber
Frames the text holds before the next beat.
Default
14 - fitnumber
Share of the frame width each word fills, edge to edge.
Default
0.9 - accentstring
Accent colour (any CSS colour).
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Overrides the theme background colour.
- fontFamilystring
Typeface for the copy. The default is loaded for you; load any other font in your project first.
Default
"Anton" - 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; above 1 plays faster.
Default
1 - theme"dark" | "light"
Colour scheme; ships light and dark.
Default
"dark"
Common questions
How do I make each word fill the frame edge to edge in Remotion?
Install Edge Fit with npx shadcn@latest add @remocn/edge-fit and pass words, caption and your logo. Set fit={1} for true edge to edge.
What is the default cream?
#F3E9D2, on #1B2A6B in the dark theme.
Related effects
- Chunk Stack: slogan stacked one word per line, rising into place, with a yellow highlighter swipe opening behind one key word. A bold social-style statement.
- Full Bleed Type: huge condensed caps words slam in one at a time, the last lit by a sunrise gradient.
- Type Wall: rows of one word fill the frame, run in alternating directions at different speeds in heavy, narrow and outline faces, with an accent band through the middle.