Story Dip

Three timestamped story lines enter in columns: a snag drops low and dims, then the resolution climbs and lights up. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/story-dip

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { StoryDip } from "@/components/remocn/story-dip";
 
const StoryDipScene = () => (
  <StoryDip
    setup={{ slug: "Wednesday, 4:00 PM", line: "The film was one render away." }}
    snag={{ slug: "4:05 PM", line: "Then the client sent a new logo." }}
    resolution={{ slug: "4:15 PM", line: "One prop later, every scene had it." }}
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="StoryDip"
    component={StoryDipScene}
    durationInFrames={360}
    fps={60}
    width={1280}
    height={720}
  />
);

Three timestamped lines enter side by side, or in two columns on a tall frame. The setup appears first, the snag then drops lower and dims, and the resolution rises to the top and turns accent-colored. Pass setup, snag and resolution as { slug, line }, where slug is the small timestamp. It ships light and dark.

Props13

PropTypeDefault
setup
{ slug: string; line: string }DEFAULT_SETUP

First beat: a small timestamp and the line.

snag
{ slug: string; line: string }DEFAULT_SNAG

Second beat; it drops lower and dims.

resolution
{ slug: string; line: string }DEFAULT_RESOLUTION

Third beat; it climbs to the top in the accent color.

fontWeight
number400

Weight of the story lines.

dim
number0.62

Opacity the snag beat dims to as it falls.

accent
string—

Color of the timestamps and the lit resolution line.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Afacad"

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 for the whole timeline.

theme
"dark" | "light""dark"

Light or dark palette.

  • setup{ slug: string; line: string }

    First beat: a small timestamp and the line.

    DefaultDEFAULT_SETUP

  • snag{ slug: string; line: string }

    Second beat; it drops lower and dims.

    DefaultDEFAULT_SNAG

  • resolution{ slug: string; line: string }

    Third beat; it climbs to the top in the accent color.

    DefaultDEFAULT_RESOLUTION

  • fontWeightnumber

    Weight of the story lines.

    Default400

  • dimnumber

    Opacity the snag beat dims to as it falls.

    Default0.62

  • accentstring

    Color of the timestamps and the lit resolution line.

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

  • 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 for the whole timeline.

    Default1

  • theme"dark" | "light"

    Light or dark palette.

    Default"dark"