Wrapped Squash
Year-in-review typography poster for Remotion: short all-caps lines each squash to fit their own colored block, and the blocks stack into a full-frame poster.
To make a recap where each short all-caps line squashes to fit a colored block and the blocks stack into a full-frame poster in Remotion, use Wrapped Squash: the first line fills the whole frame, each next line arrives and squeezes the ones above it, and a spring locks all two or three blocks into a stacked poster. Use it for a year-in-review or shipped-this-quarter recap beat.
$ pnpm dlx shadcn@latest add @remocn/wrapped-squashHow to build this in Remotion
You don't need fitText or fillTextBox from @remotion/layout-utils to fit each line to its block. Install the component and pass the lines:
npx shadcn@latest add @remocn/wrapped-squashEach line is SVG text scaled separately on x and y so its letters stretch or squash to fill the block exactly, whatever the block's height at that frame. The schedule in timeline.ts brings in a line every beat frames (26 by default), and the final lock settles every block with a spring(). Blocks alternate between a window onto one shared gradient and a solid fill; colors swaps the gradient for a flat two-color pair.
Good to know
- Length: 93 frames of motion at 30 fps (186 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 Bricolage Grotesque 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 { WrappedSquash } from "@/components/remocn/wrapped-squash";
const WrappedSquashScene = () => (
<WrappedSquash lines={["WE", "SHIPPED", "IT ALL"]} />
);
export const RemotionRoot = () => (
<Composition
id="WrappedSquash"
component={WrappedSquashScene}
durationInFrames={270}
fps={60}
width={1280}
height={720}
/>
);Line one grows to fill the frame, then each further line arrives on a 26-frame beat and squeezes the lines above it, and a spring lock settles every block to its final height. Blocks alternate between a window onto a shared gradient and a solid fill. Pass lines (two or three, set in caps); use colors for a flat two-color pair. It ships light and dark through theme, and with two lines the lock lands earlier (frame 67).
Props12
| Prop | Type | Default |
|---|---|---|
| lines | string[]["YOU", "SHIPPED", "A LOT"] Two or three short lines; set in caps, each fills its own block. | |
| accent | string"#3B5BFD" Accent color used in the dark theme's gradient field. | |
| colors | [string, string]— Flat two-color pair, such as `["#FF4632", "#FFD2F2"]`, replacing the gradient. | |
| beat | number26 Frames between one line arriving and the next. | |
| ink | string— Color of the letters on gradient blocks and of the solid blocks; overrides the theme. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Bricolage Grotesque" 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. | |
| grain | booleantrue Film grain over the scene. | |
| theme | "dark" | "light""dark" Ships light and dark. | |
| speed | number1 Playback speed multiplier. | |
- linesstring[]
Two or three short lines; set in caps, each fills its own block.
Default
["YOU", "SHIPPED", "A LOT"] - accentstring
Accent color used in the dark theme's gradient field.
Default
"#3B5BFD" - colors[string, string]
Flat two-color pair, such as `["#FF4632", "#FFD2F2"]`, replacing the gradient.
- beatnumber
Frames between one line arriving and the next.
Default
26 - inkstring
Color of the letters on gradient blocks and of the solid blocks; overrides the theme.
- backgroundstring
Background fill; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Bricolage Grotesque" - 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 - grainboolean
Film grain over the scene.
Default
true - theme"dark" | "light"
Ships light and dark.
Default
"dark" - speednumber
Playback speed multiplier.
Default
1
Common questions
How do I make all-caps lines stretch to fill stacked colored blocks?
Install Wrapped Squash with npx shadcn@latest add @remocn/wrapped-squash and pass two or three short lines. Each line squashes to fill its own block, and the blocks stack into a poster.
Can I use more than three lines?
No, it is built for two or three. For more lines or longer phrases use Word Stack.
Can I pick the block colors?
Yes, pass colors as a flat two-color pair, or set accent for the dark theme's gradient.
Related effects
- Word Stack: more lines or longer phrases pushed up into a poster stack.
- Mask Reveal Up: calm lines rising from a mask.
- Round Slam: one big word hitting the frame.