Chunk Stack

"learn motion by making it" stacks one word per line with a yellow highlighter on "making". A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/chunk-stack

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { ChunkStack } from "@/components/remocn/chunk-stack";
 
const ChunkStackScene = () => (
  <ChunkStack text="learn motion by making it" highlight="making" />
);
 
export const RemotionRoot = () => (
  <Composition
    id="ChunkStack"
    component={ChunkStackScene}
    durationInFrames={130}
    fps={30}
    width={1280}
    height={720}
  />
);

The phrase rises into a stack, one word per line, then a highlighter bar opens behind the chosen word. Pass text and highlight; it ships light and dark.

Props12

PropTypeDefault
text
string"learn motion by making it"

Phrase stacked one word per line.

highlight
string"making"

Word marked with the highlighter.

accent
string—

Accent colour (any CSS colour).

ink
string—

Text color; overrides the theme ink.

background
string—

Overrides the theme background colour.

fontFamily
string"Nunito"

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

fontWeight
number500

Weight of the words.

stagger
number4

Frames between words as they drop into the stack.

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.

  • textstring

    Phrase stacked one word per line.

    Default"learn motion by making it"

  • highlightstring

    Word marked with the highlighter.

    Default"making"

  • 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"Nunito"

  • fontWeightnumber

    Weight of the words.

    Default500

  • staggernumber

    Frames between words as they drop into the stack.

    Default4

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