Gravity Grid

A grid bends into a gravity well as a mass falls, and the logo lands at its bottom. A free, MIT-licensed Remotion logo animation.

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

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { GravityGrid } from "@/components/remocn/gravity-grid";
 
const GravityGridScene = () => (
  <GravityGrid
    name="remocn"
    caption="Launch videos, in components."
    accent="#3B5BFD"
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="GravityGrid"
    component={GravityGridScene}
    durationInFrames={400}
    fps={60}
    width={1280}
    height={720}
  />
);

A perspective grid recedes into the distance, a mass falls and bends it into a gravity well, and on impact the logo and name land at the bottom with caption beneath. Pass name or logo, and caption. Ships light and dark.

Props14

PropTypeDefault
logo
React.ReactNode—

Replaces the Remocn logo at the bottom of the well.

name
string"remocn"

Name set beside the logo.

caption
string"Launch videos, in components."

Small line under the name; empty hides it.

accent
string"#3B5BFD"

Accent colour for the mark and highlights; any CSS colour.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Hanken Grotesk"

Typeface for the name and caption. Load the font in your project first.

impactAt
number72

Frame the mass lands at the bottom of the well.

wellDepth
number5.4

How deep the mass pulls the grid.

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.

speed
number1

Playback multiplier for the whole timeline; 1 is normal speed.

theme
"dark" | "light""dark"

Dark or light palette and ground.

  • logoReact.ReactNode

    Replaces the Remocn logo at the bottom of the well.

  • namestring

    Name set beside the logo.

    Default"remocn"

  • captionstring

    Small line under the name; empty hides it.

    Default"Launch videos, in components."

  • accentstring

    Accent colour for the mark and highlights; any CSS colour.

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the name and caption. Load the font in your project first.

    Default"Hanken Grotesk"

  • impactAtnumber

    Frame the mass lands at the bottom of the well.

    Default72

  • wellDepthnumber

    How deep the mass pulls the grid.

    Default5.4

  • 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

  • speednumber

    Playback multiplier for the whole timeline; 1 is normal speed.

    Default1

  • theme"dark" | "light"

    Dark or light palette and ground.

    Default"dark"