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.

Installation
$ pnpm dlx shadcn@latest add @remocn/edge-fit

Usage

tsx
// 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

PropTypeDefault
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.

    Default3

  • holdnumber

    Frames the text holds before the next beat.

    Default14

  • fitnumber

    Share of the frame width each word fills, edge to edge.

    Default0.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.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • speednumber

    Playback multiplier; above 1 plays faster.

    Default1

  • theme"dark" | "light"

    Colour scheme; ships light and dark.

    Default"dark"