Escalate Cards

Cards flash one word each, accelerating until the last word fills the frame over a date. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/escalate-cards

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { EscalateCards } from "@/components/remocn/escalate-cards";
 
const EscalateCardsScene = () => (
  <EscalateCards words={["ONE", "CODEBASE", "EVERY", "LAUNCH"]} date="OCTOBER 30" accel={0.6} />
);
 
export const RemotionRoot = () => (
  <Composition
    id="EscalateCards"
    component={EscalateCardsScene}
    durationInFrames={260}
    fps={60}
    width={1280}
    height={720}
  />
);

One word per card flashes in, each card shorter than the last, until the final word fills the frame and a date cuts in under it. Pass words, date, firstBeat and accel; it ships light and dark.

Props14

PropTypeDefault
words
string[]["ONE", "CODEBASE", "EVERY", "LAUNCH"]

One word per card, smallest first. The last one fills the frame and holds.

date
string"OCTOBER 30"

Small line that cuts in under the last card. Pass "" to hide.

firstBeat
number26

Length of the first card in frames. Every next card is shorter.

accel
number0.6

Each card lasts this share of the one before: below 1 the cuts accelerate.

dateDelay
number14

Frames after the last cut before the date cuts in.

push
number0.045

How far the last card pushes in over its hold, as a share of its size.

accent
string"#3B5BFD"

Accent colour (any CSS colour).

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill in place of the theme stage and the climax mesh; pass "transparent" to drop it.

fontFamily
string"Oswald"

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.

theme
"dark" | "light""dark"

Colour scheme; ships light and dark.

  • wordsstring[]

    One word per card, smallest first. The last one fills the frame and holds.

    Default["ONE", "CODEBASE", "EVERY", "LAUNCH"]

  • datestring

    Small line that cuts in under the last card. Pass "" to hide.

    Default"OCTOBER 30"

  • firstBeatnumber

    Length of the first card in frames. Every next card is shorter.

    Default26

  • accelnumber

    Each card lasts this share of the one before: below 1 the cuts accelerate.

    Default0.6

  • dateDelaynumber

    Frames after the last cut before the date cuts in.

    Default14

  • pushnumber

    How far the last card pushes in over its hold, as a share of its size.

    Default0.045

  • accentstring

    Accent colour (any CSS colour).

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background fill in place of the theme stage and the climax mesh; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the copy. Load the font in your project first.

    Default"Oswald"

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

    Default1

  • theme"dark" | "light"

    Colour scheme; ships light and dark.

    Default"dark"