Tldr on Top
A short TL;DR summary line stacks on top while a dense wall of text dims and recedes behind it, so the gist reads first. A free, MIT-licensed Remotion text animation.
In Remotion, Tldr on Top stacks a short summary above a dense paragraph, and the paragraph fades back into the background so the summary is what you read. Use it for a beat that admits the full explanation is long and gives the short version first.
$ pnpm dlx shadcn@latest add @remocn/tldr-on-topHow to build this in Remotion
You don't need two text layers faded by hand with spring() and interpolate(). Install the component and pass the summary and the long text:
npx shadcn@latest add @remocn/tldr-on-topThe long paragraph reads alone for read frames (34 by default). Then the label (TL;DR) and each summary line open one by one above it. As they open they push the paragraph down and dim it from 0.86 to 0.42 opacity, and the paragraph then slides further toward the bottom of the frame. It is one component on the schedule in timeline.ts; the paragraph travels by transform, so its lines don't jitter while they are pushed.
Good to know
- Length: 130 frames of motion at 30 fps (260 at 60 fps) with the default props. That is the minimum for its
Sequence; add your own hold on top. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion (durationInFrames,Sequencelengths) are doubled. The component's own props counted in frames stay in 30 fps frames at any frame rate, see Frame rate. - Installs:
remotion,@remotion/google-fontsfrom npm, plus the remocn helpersglide,frame-rate,timeline. The shadcn CLI copies the source into your project. - Font: loads Rubik itself through
@remotion/google-fonts. PassfontFamilyto use your own face, and load that font in your project.
Usage
// 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
| Prop | Type | Default |
|---|---|---|
| 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.
Default
DEFAULT_TEXT - labelstring
Tag shown above the summary lines.
Default
"TL;DR" - linesstring[]
Summary lines that open one by one on top.
Default
DEFAULT_LINES - readnumber
Frames the wall of text reads alone before the summary drops in.
Default
34 - fontWeightnumber
Weight of the label and summary lines.
Default
500 - 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.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - speednumber
Playback speed multiplier for the whole timeline.
Default
1 - theme"dark" | "light"
Ships light and dark; picks the palette.
Default
"dark"
Common questions
How do I show a TL;DR line on top while a dense block of text recedes behind it?
Install Tldr on Top with npx shadcn@latest add @remocn/tldr-on-top, pass the short version in lines and the long copy in text. The summary opens above the paragraph while it dims and slides back.
Does the paragraph blur or scale down?
No. It dims and slides down; there is no blur filter or scale on it. If you want a blur, wrap the copied paragraph in your own filter.
Can I rename the TL;DR tag or change the font?
Yes. Pass label for the tag and fontFamily for the copy; load that font in your project first.
Related effects
- Less More: a two-line short-versus-long contrast without a body.
- What Sticks: steps through points and dims them in sequence.
- Whole Page: the long copy itself is the hero.