Word Acts

Each word acts out its own meaning in a short beat, ending on a held poster word. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/word-acts

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { WordActs } from "@/components/remocn/word-acts";
 
const WordActsScene = () => (
  <WordActs
    acts={[
      { word: "stretch", act: "stretch" },
      { word: "heavy", act: "heavy" },
      { word: "rebuilt", act: "rebuilt" },
    ]}
    hold={30}
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="WordActs"
    component={WordActsScene}
    durationInFrames={252}
    fps={60}
    width={1280}
    height={720}
  />
);

Words play one after another, each performing its meaning: stretch, split, heavy (falls and lands), faster (rushes in and snaps) and rebuilt (strokes scatter and reassemble). Pass acts as a list of { word, act, frames? }; the last word also holds for hold frames. Total length is the sum of the acts' frames plus the hold, and it ships light and dark through theme.

Props11

PropTypeDefault
acts
WordActBeat[]DEFAULT_ACTS

List of `{ word, act, frames? }` beats; `rebuilt` words must be lowercase a–z.

words
string[]—

Words for the acts in order; each one replaces its act's word.

hold
number32

Extra frames the final word holds as a poster.

accent
string"#3B5BFD"

Accent color for the gradient marks and strokes.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Geist"

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 speed multiplier.

theme
"dark" | "light""dark"

Ships light and dark.

  • actsWordActBeat[]

    List of `{ word, act, frames? }` beats; `rebuilt` words must be lowercase a–z.

    DefaultDEFAULT_ACTS

  • wordsstring[]

    Words for the acts in order; each one replaces its act's word.

  • holdnumber

    Extra frames the final word holds as a poster.

    Default32

  • accentstring

    Accent color for the gradient marks and strokes.

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

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

    Default"Geist"

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

    Default1

  • theme"dark" | "light"

    Ships light and dark.

    Default"dark"