Wrapped Squash
Each caps line squashes to fill its own colored block, stacking into a full-frame poster. A free, MIT-licensed Remotion text animation.
In Remotion, Wrapped Squash builds a year-in-review style poster: two or three short caps lines each squash to fill their own colored block, and the blocks stack to fill the frame. Use it for a recap beat.
$ pnpm dlx shadcn@latest add @remocn/wrapped-squashGood 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