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.

Installation
$ pnpm dlx shadcn@latest add @remocn/shape-pack

Usage

tsx
// 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

PropTypeDefault
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.

    Default3.2

  • decimalsnumber

    Decimal places shown while counting.

    Default1

  • 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.

    Default14

  • radiusnumber

    Corner radius of the blocks, in px at 720p.

    Default2

  • 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.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • theme"dark" | "light"

    Color theme, "dark" or "light".

    Default"dark"

  • speednumber

    Playback speed multiplier for the whole timeline.

    Default1