Magnitude Push

A figure grows digit by digit, each push zooming the camera out, then a caption lands beneath. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/magnitude-push

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { MagnitudePush } from "@/components/remocn/magnitude-push";
 
const MagnitudePushScene = () => (
  <MagnitudePush value="1000" suffix="×" label="fewer keyframes to set by hand" />
);
 
export const RemotionRoot = () => (
  <Composition
    id="MagnitudePush"
    component={MagnitudePushScene}
    durationInFrames={260}
    fps={60}
    width={1280}
    height={720}
  />
);

The first digit rises alone, then every further digit pushes in with a spring while the camera pulls back to keep the whole figure in frame. A caption settles last. Pass value, suffix and label; it ships light and dark through theme.

Props14

PropTypeDefault
value
string"1000"

Figure as a string; each character after the first pushes in.

suffix
string"×"

Text drawn after the figure, such as a multiplier sign.

label
string"fewer keyframes to set by hand"

Caption that rises in word by word under the figure.

pushGap
number15

Frames between one digit pushing in and the next.

stagger
number4

Frames between label words as they rise.

accent
string"#3B5BFD"

Accent color for highlights and small marks.

ink
string—

Text color; overrides the theme ink.

background
string—

Background color override. Pass "transparent" to composite over other layers.

fontFamily
string"Schibsted Grotesk"

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

grain
booleantrue

Film grain over the scene.

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 speed multiplier for the whole timeline.

theme
"dark" | "light""dark"

Color theme, "dark" or "light".

  • valuestring

    Figure as a string; each character after the first pushes in.

    Default"1000"

  • suffixstring

    Text drawn after the figure, such as a multiplier sign.

    Default"×"

  • labelstring

    Caption that rises in word by word under the figure.

    Default"fewer keyframes to set by hand"

  • pushGapnumber

    Frames between one digit pushing in and the next.

    Default15

  • staggernumber

    Frames between label words as they rise.

    Default4

  • accentstring

    Accent color for highlights and small marks.

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background color override. Pass "transparent" to composite over other layers.

  • fontFamilystring

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

    Default"Schibsted Grotesk"

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • 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 speed multiplier for the whole timeline.

    Default1

  • theme"dark" | "light"

    Color theme, "dark" or "light".

    Default"dark"