Balance Beam

A seesaw tips as one Remocn block outweighs a pile of hours, tools and revisions. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/balance-beam

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { BalanceBeam } from "@/components/remocn/balance-beam";
 
const BalanceBeamScene = () => (
  <BalanceBeam
    items={["$4,800", "62 hours", "3 tools", "9 revisions"]}
    accentLabel="remocn"
    title="One block."
    subtitle="Outweighs the whole stack."
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="BalanceBeam"
    component={BalanceBeamScene}
    durationInFrames={175}
    fps={30}
    width={1280}
    height={720}
  />
);

Blocks labeled with costs drop one by one onto a seesaw and weigh it down, then the hero block lands on the other side and tips the beam while the title and subtitle fade in. Pass items (up to eight labels), accentLabel for the hero block, and title and subtitle. Ships dark and light via theme.

Props15

PropTypeDefault
items
string[]—

Labels for the pile of blocks, up to eight.

accentLabel
string"remocn"

Text on the hero block; Remocn draws the logo.

title
string"One block."

Headline shown after the beam tips.

subtitle
string"Outweighs the whole stack."

Line under the headline.

stagger
number9

Frames between blocks dropping onto the beam.

accent
string"#3B5BFD"

Accent color for the hero element.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Instrument Serif"

Typeface for the copy. Load the font in your project first.

logo
React.ReactNode—

Replaces the remocn mark.

grain
booleantrue

Film grain over the scene.

theme
"dark" | "light""dark"

Dark or light palette.

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.

  • itemsstring[]

    Labels for the pile of blocks, up to eight.

  • accentLabelstring

    Text on the hero block; Remocn draws the logo.

    Default"remocn"

  • titlestring

    Headline shown after the beam tips.

    Default"One block."

  • subtitlestring

    Line under the headline.

    Default"Outweighs the whole stack."

  • staggernumber

    Frames between blocks dropping onto the beam.

    Default9

  • accentstring

    Accent color for the hero element.

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the copy. Load the font in your project first.

    Default"Instrument Serif"

  • logoReact.ReactNode

    Replaces the remocn mark.

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • theme"dark" | "light"

    Dark or light palette.

    Default"dark"

  • 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

  • speednumber

    Playback multiplier.

    Default1