Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

2.4 KB
Raw Blame
---
title: Mono Voice
description: "Stacked lines shift voice mid-line from monospace to proportional type, ending on a large accent word."
component: mono-voice
vibe: clean
length: 84
useWhen:
  - "A script-to-delivery message where the final word should be bigger and more expressive."
  - "A three-line statement whose tone changes as it is read."
avoidWhen:
  - "You only have two lines and want a quieter morph - use `mono-settle`."
  - "You want plain stacked lines - use `line-by-line-slide`."
  - "You want text typed out - use `typewriter`."
askedAs:
  - "stacked lines shifting font"
  - "I want lines to change from mono to proportional ending on a big word"
  - "script to delivery message with expressive final word"
  - "three line statement that changes tone"
  - "voice change typography"
  - "typeface shift mid line"
---

<ComponentPreview name="mono-voice" />

<InstallBlock name="mono-voice" />

## Usage

```tsx
// 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`.

<PropsTable title="Props"
  rows={[
    {
      name: "text",
      type: "string",
      default: "\"Same script.\\nA whole new\\ndelivery.\"",
      description: "Lines separated by newlines",
    },
    {
      name: "highlight",
      type: "string",
      default: "\"delivery.\"",
      description: "Final word set large in the accent color",
    },
    {
      name: "accent",
      type: "string",
      description: "Accent color (any valid CSS color)",
    },
    {
      name: "background",
      type: "string",
      description: "Overrides the theme's stage color",
    },
    {
      name: "speed",
      type: "number",
      default: "1",
      description: "Playback speed multiplier",
    },
    {
      name: "theme",
      type: "\"dark\" | \"light\"",
      default: "\"dark\"",
      description: "Ships light and dark palettes",
    },
  ]}
/>