Your Name Here
A launch-film caption has a slot where the brand name is swapped in for the viewer's own. A free, MIT-licensed Remotion text animation.
In Remotion, Your Name Here plays a launch-film caption with a slot in the line where the viewer's own product name goes, and swaps a brand name into that slot. Use it for a template-style beat that tells the viewer to drop in their own name.
$ pnpm dlx shadcn@latest add @remocn/your-name-hereGood to know
- Length: 146 frames of motion at 30 fps (292 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 Lexend itself through
@remotion/google-fonts. PassfontFamilyto use your own face, and load that font in your project. - Pass
note=""to hide the note line under the caption.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { YourNameHere } from "@/components/remocn/your-name-here";
const YourNameHereScene = () => (
<YourNameHere lead="A launch film for" slot="yourProduct" brand="Acme" note="Swap one prop. The film is yours." />
);
export const RemotionRoot = () => (
<Composition
id="YourNameHere"
component={YourNameHereScene}
durationInFrames={360}
fps={60}
width={1280}
height={720}
/>
);A lead-in line runs to a highlighted slot that swaps from slot to brand, then a closing note lands below. Pass lead, brand, slot and note to personalize it. It ships in light and dark through the theme prop.
Props14
| Prop | Type | Default |
|---|---|---|
| lead | string"A launch film for" Text before the slot. | |
| brand | string"remocn" Name that replaces the placeholder. | |
| slot | string"yourProduct" Placeholder text shown first. | |
| end | string"." Closing punctuation after the name. | |
| note | string"Swap one prop. The film is yours." Caption shown under the main line. | |
| stagger | number3 Frames between words as the lead builds. | |
| accent | string— Accent color override; falls back to the theme accent. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background color override; falls back to the theme background. | |
| fontFamily | string"Lexend" 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
Text before the slot.
Default
"A launch film for" - brandstring
Name that replaces the placeholder.
Default
"remocn" - slotstring
Placeholder text shown first.
Default
"yourProduct" - endstring
Closing punctuation after the name.
Default
"." - notestring
Caption shown under the main line.
Default
"Swap one prop. The film is yours." - staggernumber
Frames between words as the lead builds.
Default
3 - accentstring
Accent color override; falls back to the theme accent.
- inkstring
Text color; 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
"Lexend" - 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"