Absorb Stack
Poetic text stack for Remotion: small centered lines settle into a tight block on dark brown, and the last line lands in red. For brand films and closing slogans.
In Remotion, Absorb Stack sets a short poetic statement as a centered stack of small lines on a dark brown background, with the last line, such as "on top.", in red. The lines fade in from the center outward and ease together into a tight block; use it for a brand film, a closing slogan or a quiet beat between louder scenes.
$ pnpm dlx shadcn@latest add @remocn/absorb-stackHow to build this in Remotion
You don't need to lay this out by hand with AbsoluteFill and a font size per line. Install the component and pass your lines:
npx shadcn@latest add @remocn/absorb-stackIt is one scene: each ring of lines, counted from the center out, fades in with interpolate() on an Easing.bezier curve, and the stack pulls together with a spring(). The schedule lives in timeline.ts, so single lines can be moved or stretched with the timing prop.
Good to know
- Length: 60 frames of motion at 30 fps (120 at 60 fps) with the default props; the demo plays 120 frames, which adds a hold. The timing is fixed: a longer composition only holds the last frame longer. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, 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 Jost (variable) itself through
@remotion/google-fonts. PassfontFamilyto use your own face, and load that font in your project. - Default colors, dark theme: ground
#2A1C17, lines#E8C9B0, accent#C8102E. Light theme: ground#EAD3C3, lines#2A1C17, same red accent. Override withbackground,inkandaccent. - The text is not forced to lowercase: lines render exactly as you type them. The defaults just happen to be lowercase.
- The accent goes on the last line unless you set
accentLine(a zero-based index).
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { AbsorbStack } from "@/components/remocn/absorb-stack";
const AbsorbStackScene = () => <AbsorbStack lines={["made to", "sink into", "your cut,", "not sit", "on top."]} accentLine={4} />;
export const RemotionRoot = () => (
<Composition
id="AbsorbStack"
component={AbsorbStackScene}
durationInFrames={240}
fps={60}
width={1280}
height={720}
/>
);A stack of small lowercase lines fades in from the center outward, spread wide, then eases together into a tight block, with the last line in the accent color. Pass lines (one string per line) and optionally accentLine for which line gets the accent.
Props12
| Prop | Type | Default |
|---|---|---|
| lines | string[]— Lines of text, centered and set in lowercase. | |
| accentLine | number— Index of the line set in the accent color; defaults to the last. | |
| accent | string— Color of the accented line; defaults to the theme accent. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Stage fill color; pass "transparent" to overlay your own footage. | |
| fontFamily | string"Jost" Typeface for the copy. Jost loads by default; load any other face in your project first. | |
| fontWeight | number400 Weight of the lines. | |
| stagger | number5 Frames between rings of lines as they settle, from the center out. | |
| 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 for the whole timeline. | |
| theme | "dark" | "light""dark" Color scheme; ships dark and light. | |
- linesstring[]
Lines of text, centered and set in lowercase.
- accentLinenumber
Index of the line set in the accent color; defaults to the last.
- accentstring
Color of the accented line; defaults to the theme accent.
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Stage fill color; pass "transparent" to overlay your own footage.
- fontFamilystring
Typeface for the copy. Jost loads by default; load any other face in your project first.
Default
"Jost" - fontWeightnumber
Weight of the lines.
Default
400 - staggernumber
Frames between rings of lines as they settle, from the center out.
Default
5 - 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 multiplier for the whole timeline.
Default
1 - theme"dark" | "light"
Color scheme; ships dark and light.
Default
"dark"
Common questions
How do I set a short poetic statement as a centered stack of lines in Remotion, with the last line in red?
Install Absorb Stack with npx shadcn@latest add @remocn/absorb-stack and pass lines, one string per line. The last line takes the red accent (#C8102E) on a dark brown ground by default.
Can I change which line is red?
Yes. accentLine picks the line by zero-based index, and accent sets the color.
Related effects
- Full Bleed Type: one big loud headline instead of a stack.
- Line-by-Line Slide: lines that reveal one at a time with a delay.
- What Sticks: a stack that dims toward one highlighted claim.
- Serif Rise: a single editorial serif line with a red ending.