Grid Cell

Design-tool intro for Remotion: one cell lights up on a graph-paper grid and a version name is typed inside it with a caret and a small monospace label.

In Remotion, Grid Cell lights up one cell on a graph-paper grid, merges cells into a frame around the headline and types a version name inside it with a caret, with a small monospace label in the corner. Use it as a design-tool style intro for a version, release or product name.

Installation
$ pnpm dlx shadcn@latest add @remocn/grid-cell

How to build this in Remotion

You don't need a typewriter helper and a hand-drawn grid. Install the component:

bash
npx shadcn@latest add @remocn/grid-cell

The grid fades in from the center and the cells merge with interpolate() and Easing; the title is typed by slicing the string on the scene frame, with a blinking caret. The title's width is measured on a canvas while delayRender() holds the first frame, so the cell is sized to the text before it types.

Good to know

  • Length: 130 frames of motion at 30 fps (260 at 60 fps) with the default props. The demo plays 170 frames, which adds a hold: frames past the end of the motion hold the final frame. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, see Frame rate.
  • Installs: remotion, @remotion/google-fonts from npm, plus the remocn helpers glide, frame-rate, timeline. The shadcn CLI copies the source into your project.
  • Fonts: loads Geist (the title) and Geist Mono (the label) itself through @remotion/google-fonts. fontFamily changes the title only; the label stays Geist Mono.
  • The label sits in the corner of the lit cell; there is no prop to move it. cellSize (default 80) sets the grid pitch.

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { GridCell } from "@/components/remocn/grid-cell";
 
const GridCellScene = () => (
  <GridCell title="Introducing remocn 2.0" label="v2.0" accent="#3B5BFD" />
);
 
export const RemotionRoot = () => (
  <Composition
    id="GridCell"
    component={GridCellScene}
    durationInFrames={340}
    fps={60}
    width={1280}
    height={720}
  />
);

A grid fades in from the center, cells merge into one that frames the headline, the label appears in the corner, and the title is typed in with a caret before the grid dims. Pass title and label; it ships light and dark through theme.

Props12

PropTypeDefault
title
string"Introducing remocn 2.0"

Headline typed into the cell

label
string"v2.0"

Tiny mono label in the cell corner

stagger
number1.5

Frames between typed characters.

cellSize
number80

Grid cell size at 1280 wide; 80 tiles the frame 16 × 9.

accent
string"#3B5BFD"

Accent color (any valid CSS color)

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Geist"

Typeface for the copy. Geist loads by default; load any other face 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.

speed
number1

Playback speed multiplier

theme
"dark" | "light""dark"

Ships light and dark palettes

  • titlestring

    Headline typed into the cell

    Default"Introducing remocn 2.0"

  • labelstring

    Tiny mono label in the cell corner

    Default"v2.0"

  • staggernumber

    Frames between typed characters.

    Default1.5

  • cellSizenumber

    Grid cell size at 1280 wide; 80 tiles the frame 16 × 9.

    Default80

  • accentstring

    Accent color (any valid CSS color)

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the copy. Geist loads by default; load any other face in your project first.

    Default"Geist"

  • 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

  • theme"dark" | "light"

    Ships light and dark palettes

    Default"dark"

Common questions

How can I make an intro where one cell lights up on a graph-paper grid and a version name types inside it?

Install Grid Cell with npx shadcn@latest add @remocn/grid-cell and pass title and label, for example title="Introducing v2.0".

Which font does the label use?

Geist Mono, loaded by the component. fontFamily only changes the title.

How long is it?

130 frames at 30 fps (260 at 60 fps); the demo plays 170 to hold the typed title.