Macro Pan

A serif headline is revealed by a close-up pan across its glyphs, pulling back to a full lockup. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/macro-pan

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { MacroPan } from "@/components/remocn/macro-pan";
 
const MacroPanScene = () => (
  <MacroPan title="Built to move." label="remocn" index="01" accent="#3B5BFD" />
);
 
export const RemotionRoot = () => (
  <Composition
    id="MacroPan"
    component={MacroPanScene}
    durationInFrames={360}
    fps={60}
    width={1280}
    height={720}
  />
);

The camera starts zoomed into the letters and pans across them, then pulls back to reveal the whole headline ending on a gradient while the corner label settles. Pass title, label and index; it ships light and dark through theme.

Props15

PropTypeDefault
title
string"Built to move."

Headline revealed by the pan

label
string"remocn"

Running label in the corner; Remocn shows the logo

index
string"01"

Number before the label, like a reel or chapter

panLen
number100

Frames the camera pans across the last letters.

pullLen
number34

Frames of the pull-back to the full headline.

logo
React.ReactNode—

Replaces the remocn mark.

accent
string"#3B5BFD"

Accent color (any valid CSS color)

ink
string—

Text color; overrides the theme's sunrise gradient on the headline.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Fraunces"

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

theme
"dark" | "light""dark"

Ships light and dark palettes

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

grain
booleantrue

Film grain over the scene.

  • titlestring

    Headline revealed by the pan

    Default"Built to move."

  • labelstring

    Running label in the corner; Remocn shows the logo

    Default"remocn"

  • indexstring

    Number before the label, like a reel or chapter

    Default"01"

  • panLennumber

    Frames the camera pans across the last letters.

    Default100

  • pullLennumber

    Frames of the pull-back to the full headline.

    Default34

  • logoReact.ReactNode

    Replaces the remocn mark.

  • accentstring

    Accent color (any valid CSS color)

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme's sunrise gradient on the headline.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

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

    Default"Fraunces"

  • theme"dark" | "light"

    Ships light and dark palettes

    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 speed multiplier

    Default1

  • grainboolean

    Film grain over the scene.

    Defaulttrue