Skip to content

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

2.4 KB
Raw Blame
---
title: Mono Settle
description: "Two lines set in monospace settle into proportional type, with the last words in the accent."
component: mono-settle
vibe: clean
length: 86
useWhen:
  - "A developer-flavored message about moving from code to a finished result."
  - "A two-line statement where type visibly changes personality from raw to refined."
avoidWhen:
  - "You want a plain two-line entrance - use `line-by-line-slide`."
  - "You want text typed out - use `typewriter`."
  - "You want three lines that shift voice mid-line - use `mono-voice`."
askedAs:
  - "monospace to proportional"
  - "I want code style text to become a normal font"
  - "developer message from code to finished result"
  - "two lines changing typeface with accent words"
  - "mono to sans text"
  - "code font transform"
---

<ComponentPreview name="mono-settle" />

<InstallBlock name="mono-settle" />

## Usage

```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { MonoSettle } from "@/components/remocn/mono-settle";

const MonoSettleScene = () => (
  <MonoSettle lines={["From your editor", "to the edit."]} highlight="the edit." />
);

export const RemotionRoot = () => (
  <Composition
    id="MonoSettle"
    component={MonoSettleScene}
    durationInFrames={125}
    fps={30}
    width={1280}
    height={720}
  />
);
```

The lines rise in monospace, a wave of morphing turns each glyph into proportional type, and `highlight` takes the accent color. Pass `lines` and `highlight`; it ships light and dark through `theme`.

<PropsTable title="Props"
  rows={[
    {
      name: "lines",
      type: "string[]",
      default: "[\"From your editor\", \"to the edit.\"]",
      description: "Lines of text shown top to bottom",
    },
    {
      name: "highlight",
      type: "string",
      default: "\"the edit.\"",
      description: "Words in the lines shown 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",
    },
  ]}
/>