Dot Type
Words are drawn from a field of round dots in a gradient, with the last word set in the accent. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/dot-typeUsage
// src/Root.tsx
import { Composition } from "remotion";
import { DotType } from "@/components/remocn/dot-type";
const DotTypeScene = () => (
<DotType words={["Think.", "Make.", "Ship."]} count={1500} accent="#3B5BFD" />
);
export const RemotionRoot = () => (
<Composition
id="DotType"
component={DotTypeScene}
durationInFrames={380}
fps={60}
width={1280}
height={720}
/>
);A dot field collapses into the first word, then each next word reforms from the same dots in turn; the final word can take the accent color. Pass words and tune count for dot density; it ships light and dark through theme.
Props14
| Prop | Type | Default |
|---|---|---|
| words | string[]DEFAULT_WORDS Words shown in order, each formed from the dots | |
| accentLast | booleantrue Color the final word with the accent | |
| count | number1500 Number of dots in the field; minimum 300 | |
| accent | string"#3B5BFD" Accent color (any valid CSS color) | |
| ink | string— Color of the dots; overrides the theme ink. | |
| background | string— Solid fill in place of the soft radial stage; pass "transparent" to drop it. | |
| fontFamily | string"Sora" Typeface for the copy. Load the font in your project first. | |
| fontWeight | number500 Weight the words are sampled at. | |
| hold | number22 Frames each word holds before the dots fly to the next. | |
| 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 | |
| theme | "dark" | "light""dark" Ships light and dark palettes | |
- wordsstring[]
Words shown in order, each formed from the dots
Default
DEFAULT_WORDS - accentLastboolean
Color the final word with the accent
Default
true - countnumber
Number of dots in the field; minimum 300
Default
1500 - accentstring
Accent color (any valid CSS color)
Default
"#3B5BFD" - inkstring
Color of the dots; overrides the theme ink.
- backgroundstring
Solid fill in place of the soft radial stage; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Sora" - fontWeightnumber
Weight the words are sampled at.
Default
500 - holdnumber
Frames each word holds before the dots fly to the next.
Default
22 - 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
Default
1 - theme"dark" | "light"
Ships light and dark palettes
Default
"dark"