Pull in
A fixed lead phrase stays while spaced-out place words pull into view one after another. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/pull-inUsage
// src/Root.tsx
import { Composition } from "remotion";
import { PullIn } from "@/components/remocn/pull-in";
const PullInScene = () => (
<PullIn lead="Now in" places={["vertical.", "4K.", "your codebase."]} hold={24} />
);
export const RemotionRoot = () => (
<Composition
id="PullIn"
component={PullInScene}
durationInFrames={350}
fps={60}
width={1280}
height={720}
/>
);The lead phrase holds while each entry in places pulls into view from a wide spread and then departs for the next. Pass lead and places, and tune hold for pace. It ships in light and dark through the theme prop.
Props13
| Prop | Type | Default |
|---|---|---|
| lead | string"Now in" Phrase that stays in place. | |
| places | string[]["vertical.", "4K.", "your codebase."] Words pulled into view in order. | |
| hold | number24 Frames each state stays on screen before the next one. | |
| stagger | number1.25 Frames between letters of a word pulling in. | |
| brake | number20 Frames a word takes to brake from the right edge to its stop. | |
| accent | string— Accent color override; falls back to the theme accent. | |
| ink | string— Text color of the passing words; overrides the theme ink. | |
| background | string— Background color override; falls back to the theme background. | |
| fontFamily | string"Plus Jakarta Sans" 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. | |
| speed | number1 Playback speed multiplier for the whole timeline. | |
| theme | "dark" | "light""dark" Ships light and dark; picks the palette. | |
- leadstring
Phrase that stays in place.
Default
"Now in" - placesstring[]
Words pulled into view in order.
Default
["vertical.", "4K.", "your codebase."] - holdnumber
Frames each state stays on screen before the next one.
Default
24 - staggernumber
Frames between letters of a word pulling in.
Default
1.25 - brakenumber
Frames a word takes to brake from the right edge to its stop.
Default
20 - accentstring
Accent color override; falls back to the theme accent.
- inkstring
Text color of the passing words; overrides the theme ink.
- backgroundstring
Background color override; falls back to the theme background.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Plus Jakarta Sans" - 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 - speednumber
Playback speed multiplier for the whole timeline.
Default
1 - theme"dark" | "light"
Ships light and dark; picks the palette.
Default
"dark"