Word Insert
A sentence edits itself, opening a gap and inserting new words in an accent gradient. A free, MIT-licensed Remotion text animation.
In Remotion, Word Insert edits a sentence on screen: it opens a gap and inserts new words in an accent gradient, growing a plain noun into a full promise. Use it for a tagline that builds up by insertion.
$ pnpm dlx shadcn@latest add @remocn/word-insertGood to know
- Length: 116 frames of motion at 30 fps (232 at 60 fps) with the default props. That is the minimum for its
Sequence; add your own hold on top. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion (durationInFrames,Sequencelengths) are doubled. The component's own props counted in frames stay in 30 fps frames at any frame rate, see Frame rate. - Installs:
remotion,@remotion/google-fontsfrom npm, plus the remocn helpersglide,frame-rate,timeline. The shadcn CLI copies the source into your project. - Font: loads Manrope itself through
@remotion/google-fonts. PassfontFamilyto use your own face, and load that font in your project.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { WordInsert } from "@/components/remocn/word-insert";
const WordInsertScene = () => (
<WordInsert states={["Launch videos.", "Launch videos, as code."]} />
);
export const RemotionRoot = () => (
<Composition
id="WordInsert"
component={WordInsertScene}
durationInFrames={348}
fps={60}
width={1280}
height={720}
/>
);Each entry in states is the same sentence with more words added, and the new words open a gap and slide in with a gradient. Pass states as successive versions of your line. It ships in light and dark through the theme prop.
Props12
| Prop | Type | Default |
|---|---|---|
| states | string[]DEFAULT_STATES Successive versions of the sentence, each adding words. | |
| beat | number50 Frames between one state of the sentence and the next. | |
| stagger | number3 Frames between words as they enter. | |
| accent | string"#3B5BFD" Accent color override; falls back to the theme accent. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Manrope" Typeface for the copy. 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. | |
| theme | "dark" | "light""dark" Ships light and dark; picks the palette. | |
| speed | number1 Playback speed multiplier for the whole timeline. | |
- statesstring[]
Successive versions of the sentence, each adding words.
Default
DEFAULT_STATES - beatnumber
Frames between one state of the sentence and the next.
Default
50 - staggernumber
Frames between words as they enter.
Default
3 - accentstring
Accent color override; falls back to the theme accent.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. 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 - theme"dark" | "light"
Ships light and dark; picks the palette.
Default
"dark" - speednumber
Playback speed multiplier for the whole timeline.
Default
1