Tldr on Top

A short TL;DR summary stacks above a dense paragraph that fades into the background. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/tldr-on-top

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { TldrOnTop } from "@/components/remocn/tldr-on-top";
 
const TldrOnTopScene = () => (
  <TldrOnTop label="TL;DR" lines={["Every scene is a component.", "Your brand is one file."]} />
);
 
export const RemotionRoot = () => (
  <Composition
    id="TldrOnTop"
    component={TldrOnTopScene}
    durationInFrames={400}
    fps={60}
    width={1280}
    height={720}
  />
);

A label and summary lines open one by one above a long body paragraph that dims behind them. Pass lines for the summary, text for the body, and label to rename the tag. It ships in light and dark through the theme prop.

Props13

PropTypeDefault
text
stringDEFAULT_TEXT

Long body paragraph shown dimmed behind the summary.

label
string"TL;DR"

Tag shown above the summary lines.

lines
string[]DEFAULT_LINES

Summary lines that open one by one on top.

read
number34

Frames the wall of text reads alone before the summary drops in.

fontWeight
number500

Weight of the label and summary lines.

accent
string—

Accent color override; falls back to the theme accent.

ink
string—

Text color; overrides the theme ink.

background
string—

Background color override; falls back to the theme background.

fontFamily
string"Rubik"

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"

Ships light and dark; picks the palette.

  • textstring

    Long body paragraph shown dimmed behind the summary.

    DefaultDEFAULT_TEXT

  • labelstring

    Tag shown above the summary lines.

    Default"TL;DR"

  • linesstring[]

    Summary lines that open one by one on top.

    DefaultDEFAULT_LINES

  • readnumber

    Frames the wall of text reads alone before the summary drops in.

    Default34

  • fontWeightnumber

    Weight of the label and summary lines.

    Default500

  • accentstring

    Accent color override; falls back to the theme accent.

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background color override; falls back to the theme background.

  • fontFamilystring

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

    Default"Rubik"

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

    Ships light and dark; picks the palette.

    Default"dark"