Infinite Bento Pan

A hypnotic diagonal camera glide over an oversized grid of bento cards

Installation

$ pnpm dlx shadcn@latest add @remocn/infinite-bento-pan

Usage

// src/Root.tsx
import { Composition } from "remotion";
import { InfiniteBentoPan } from "@/components/remocn/infinite-bento-pan";

const InfiniteBentoPanScene = () => (
  <InfiniteBentoPan panSpeed={1} accentColor="#7c3aed" />
);

export const RemotionRoot = () => (
  <Composition
    id="InfiniteBentoPan"
    component={InfiniteBentoPanScene}
    durationInFrames={300}
    fps={30}
    width={1280}
    height={720}
  />
);

Props

PropTypeDefaultDescription
panSpeed
number1Multiplier for the diagonal camera distance traveled across the duration. Clamped to a single full traversal at 1.
accentColor
string"#7c3aed"Color used by chart strokes, bar fills, counters, and logo gradients
speed
number1Multiplier applied to the current frame for global timing control
className
stringOptional className for the outer container