Cell Divide
A grid of dots doubles by cell division up to a count of 64
$ pnpm dlx shadcn@latest add @remocn/cell-divideUsage
// src/Root.tsx
import { Composition } from "remotion";
import { CellDivide } from "@/components/remocn/cell-divide";
const CellDivideScene = () => <CellDivide generations={6} label="×2 every week" />;
export const RemotionRoot = () => (
<Composition
id="CellDivide"
component={CellDivideScene}
durationInFrames={165}
fps={30}
width={1280}
height={720}
/>
);A single dot divides in two, then four, then eight, each division morphing like a cell and the grid of dots growing smaller as it fills, with the count rolling beside it. After the last division the cells pulse in a wave and a caption with an accent dot sits under the number. Pass generations from 2 to 7 and label. The length shown is for the default of 6 generations. It ships light and dark through the theme prop.
Props5
| Prop | Type | Default |
|---|---|---|
| generations | number6 Number of divisions, 2 to 7. The final count is 2 to that power. | |
| label | string"×2 every week" Caption under the number. | |
| accent | string"#3B5BFD" Colour of the dot before the caption. | |
| theme | "dark" | "light""dark" Ships light and dark. | |
| speed | number1 Playback speed multiplier; 1 is the designed pace. | |
- generationsnumber
Number of divisions, 2 to 7. The final count is 2 to that power.
Default
6 - labelstring
Caption under the number.
Default
"×2 every week" - accentstring
Colour of the dot before the caption.
Default
"#3B5BFD" - theme"dark" | "light"
Ships light and dark.
Default
"dark" - speednumber
Playback speed multiplier; 1 is the designed pace.
Default
1