Mono Voice
Stacked lines shift voice mid-line from monospace to proportional type, ending on a large accent word. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/mono-voiceUsage
// src/Root.tsx
import { Composition } from "remotion";
import { MonoVoice } from "@/components/remocn/mono-voice";
const MonoVoiceScene = () => (
<MonoVoice text={"Same script.\nA whole new\ndelivery."} highlight="delivery." />
);
export const RemotionRoot = () => (
<Composition
id="MonoVoice"
component={MonoVoiceScene}
durationInFrames={130}
fps={30}
width={1280}
height={720}
/>
);Lines rise in monospace, a sweep shifts each glyph into a proportional voice, and highlight grows large in the accent color. Pass text (newlines split lines) and highlight; it ships light and dark through theme.
Props12
| Prop | Type | Default |
|---|---|---|
| text | string"Same script.\nA whole new\ndelivery." Lines separated by newlines | |
| highlight | string"delivery." Final word set large in the accent color | |
| voiceAt | number28 Frame the mono letters start finding their voice. | |
| stagger | number4 Frames between lines rising in. | |
| accent | string— Accent color (any valid CSS color) | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Overrides the theme's stage color | |
| fontFamily | string"Inter Tight" Typeface for the copy; a variable font with a wght axis. 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 | |
| theme | "dark" | "light""dark" Ships light and dark palettes | |
- textstring
Lines separated by newlines
Default
"Same script.\nA whole new\ndelivery." - highlightstring
Final word set large in the accent color
Default
"delivery." - voiceAtnumber
Frame the mono letters start finding their voice.
Default
28 - staggernumber
Frames between lines rising in.
Default
4 - accentstring
Accent color (any valid CSS color)
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Overrides the theme's stage color
- fontFamilystring
Typeface for the copy; a variable font with a wght axis. Load the font in your project first.
Default
"Inter Tight" - 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
Default
1 - theme"dark" | "light"
Ships light and dark palettes
Default
"dark"