Shape Pack
Colored tiles drop in and pack into a poster grid, then one block locks in a stat with a label. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/shape-packUsage
// src/Root.tsx
import { Composition } from "remotion";
import { ShapePack } from "@/components/remocn/shape-pack";
const ShapePackScene = () => (
<ShapePack value={3.2} decimals={1} suffix="×" label="faster renders" />
);
export const RemotionRoot = () => (
<Composition
id="ShapePack"
component={ShapePackScene}
durationInFrames={300}
fps={60}
width={1280}
height={720}
/>
);Blocks fall one after another and pack into a twelve by eight grid, leaving a slot that the last block fills. That block counts up to value with its suffix and label. Pass value, suffix, label and optionally your own logo node; it ships light and dark through theme.
Props16
| Prop | Type | Default |
|---|---|---|
| value | number3.2 Final number the locking block counts up to. | |
| decimals | number1 Decimal places shown while counting. | |
| suffix | string"×" Text drawn after the number. | |
| label | string"faster renders" Caption inside the locking block. | |
| fall | number14 Frames each block takes to fall into place. | |
| radius | number2 Corner radius of the blocks, in px at 720p. | |
| logo | React.ReactNode— React node shown in the poster instead of the default Remocn logo. | |
| accent | string"#3B5BFD" Accent color for highlights and small marks. | |
| ink | string— Color of the stat number. | |
| 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" Color theme, "dark" or "light". | |
| speed | number1 Playback speed multiplier for the whole timeline. | |
- valuenumber
Final number the locking block counts up to.
Default
3.2 - decimalsnumber
Decimal places shown while counting.
Default
1 - suffixstring
Text drawn after the number.
Default
"×" - labelstring
Caption inside the locking block.
Default
"faster renders" - fallnumber
Frames each block takes to fall into place.
Default
14 - radiusnumber
Corner radius of the blocks, in px at 720p.
Default
2 - logoReact.ReactNode
React node shown in the poster instead of the default Remocn logo.
- accentstring
Accent color for highlights and small marks.
Default
"#3B5BFD" - inkstring
Color of the stat number.
- 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"
Color theme, "dark" or "light".
Default
"dark" - speednumber
Playback speed multiplier for the whole timeline.
Default
1
Common questions
How do I animate colored tiles dropping in and packing into a poster grid in Remotion?
Install Shape Pack with npx shadcn@latest add @remocn/shape-pack. Blocks fall one after another into a poster-style grid, the last block fills the gap, and it locks in a stat with a label. You don't need @remotion/shapes: the tiles are plain HTML and CSS driven by interpolate() from Remotion.
Can I change the grid size?
Not with a prop. The grid is twelve columns by eight rows and the block layout is fixed in the component. Since the file is copied into your project, you can edit the COLS, ROWS and block constants yourself.
Does it work in portrait or square videos?
It is laid out for 16:9. The poster is about 1.6 times wider than it is tall and sized from the frame height, so in a portrait frame it overflows the sides.
How long is it, and what happens at 60 fps?
The stat finishes counting at frame 103 at 30 fps; a slow push-in on the poster runs to frame 143, then the frame holds. The component counts time on a 30 fps scale at any frame rate, so in a 60 fps composition give it at least 206 frames (286 to include the push). The usage example's 300 frames at 60 fps is 5 seconds, which includes a hold.
Where does the count start?
At 30% of value, rising to the full number with decimals places. The default reads 3.2× with the label "faster renders".
Related effects
- Compact Stat: a clean headline number with a K, M or B suffix.
- Grid Snap Poster: a gradient number snapped onto a grid with a headline.
- Number Split: a total broken into categories.