Edge Fit
A single huge cream word, 'recaps', fills the frame edge to edge with a caption and logo. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/edge-fitUsage
// 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={150}
fps={30}
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. 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 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. Load the 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"