Dot Field Morph
A drifting field of dots swirls into icon shapes, then gathers into the logo. A free, MIT-licensed Remotion motion graphic.
$ pnpm dlx shadcn@latest add @remocn/dot-field-morphUsage
// src/Root.tsx
import { Composition } from "remotion";
import { DotFieldMorph } from "@/components/remocn/dot-field-morph";
const DotFieldMorphScene = () => (
<DotFieldMorph labels={["Animations", "Transitions", "Captions", ""]} count={2000} />
);
export const RemotionRoot = () => (
<Composition
id="DotFieldMorph"
component={DotFieldMorphScene}
durationInFrames={500}
fps={60}
width={1280}
height={720}
/>
);A scattered field of dots drifts, then swirls into the first shape, holds with a caption, and morphs through the next shapes until the last one, the wordmark, holds. Pass shapes (SVG path data or parts, stroked or filled) and matching labels; with the default set it shows three icons then the Remocn wordmark. Ships dark and light via theme.
Props14
| Prop | Type | Default |
|---|---|---|
| shapes | DotShape[]DEFAULT_SHAPES Shapes in order after the scattered field; the last one holds. | |
| labels | string[]DEFAULT_LABELS Optional caption under each shape, same order. Empty string for none. | |
| count | number2000 Number of dots; 1,500 to 2,500 reads as a field. | |
| hold | number22 Frames each shape holds before the next morph. | |
| morph | number30 Frames of each morph between shapes; the last morph keeps its own length. | |
| accent | string"#3B5BFD" Color of accent-flagged parts of a shape. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Manrope" Typeface for the labels. Load the font 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. | |
| grain | booleantrue Film grain over the scene. | |
| speed | number1 Playback speed multiplier for the whole timeline. | |
| theme | "dark" | "light""dark" Color scheme. Ships dark and light. | |
- shapesDotShape[]
Shapes in order after the scattered field; the last one holds.
Default
DEFAULT_SHAPES - labelsstring[]
Optional caption under each shape, same order. Empty string for none.
Default
DEFAULT_LABELS - countnumber
Number of dots; 1,500 to 2,500 reads as a field.
Default
2000 - holdnumber
Frames each shape holds before the next morph.
Default
22 - morphnumber
Frames of each morph between shapes; the last morph keeps its own length.
Default
30 - accentstring
Color of accent-flagged parts of a shape.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- fontFamilystring
Typeface for the labels. Load the font in your project first.
Default
"Manrope" - scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - grainboolean
Film grain over the scene.
Default
true - speednumber
Playback speed multiplier for the whole timeline.
Default
1 - theme"dark" | "light"
Color scheme. Ships dark and light.
Default
"dark"