Skip to content

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

3.0 KB
Raw Blame
---
title: Dynamic Letter
description: "One letter of the wordmark cuts through shape treatments on the beat, then lands on a final style."
component: dynamic-letter
vibe: premium
length: 68
useWhen:
  - "A logo sting for a design or type product that should show the identity is flexible."
  - "A beat-synced identity cut where one letter changes style."
  - "A brand video that needs a quick it-adapts moment."
avoidWhen:
  - "A single shape should morph into the letter — use `shape-morph-o`."
  - "You want a quiet reveal with no style cuts — use `first-light`."
  - "The changing part should be words, not one letter — use `bracket-index`."
askedAs:
  - "flexible identity letter"
  - "letter style cycling"
  - "I want one letter of the logo changing style on the beat"
  - "logo sting for a type or design product"
  - "shows the brand identity can morph"
  - "viewer sees one glyph flex through treatments"
---

<ComponentPreview name="dynamic-letter" />

<InstallBlock name="dynamic-letter" />

## Usage

```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { DynamicLetter } from "@/components/remocn/dynamic-letter";

const DynamicLetterScene = () => (
  <DynamicLetter
    text="emocn"
    variants={["solid", "outline", "stripes", "dots"]}
    final="overflow"
  />
);

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

The R mark and wordmark hold still while one letter (the first o by default) cuts through treatments such as outline, stripes and dots, tightening on the beat, then lands on the `final` treatment as the poster. Pass `text`, `letterIndex`, `variants` and `final`. Ships light and dark.

<PropsTable title="Props"
  rows={[
    {
      name: "text",
      type: "string",
      default: "\"emocn\"",
      description: "Lowercase letters set after the R mark.",
    },
    {
      name: "letterIndex",
      type: "number",
      description: "Index in text of the letter that changes.",
    },
    {
      name: "variants",
      type: "DynamicLetterVariant[]",
      default: "DEFAULT_VARIANTS",
      description: "Treatments the letter cuts through, in order.",
    },
    {
      name: "final",
      type: "DynamicLetterVariant",
      default: "\"overflow\"",
      description: "Treatment the letter lands on and holds.",
    },
    {
      name: "beat",
      type: "number",
      default: "8",
      description: "Frames per treatment at the start; cuts tighten from there.",
    },
    {
      name: "accent",
      type: "string",
      default: "\"#3B5BFD\"",
      description: "Accent colour for the mark and highlights; any CSS colour.",
    },
    {
      name: "theme",
      type: "\"dark\" | \"light\"",
      default: "\"dark\"",
      description: "Dark or light palette and ground.",
    },
    {
      name: "speed",
      type: "number",
      default: "1",
      description: "Playback multiplier for the whole timeline; 1 is normal speed.",
    },
  ]}
/>