Skip to content

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

2.9 KB
Raw Blame
---
title: Known Terms
description: "Term and definition pairs push each other into place, building to an accent-colored final line."
component: known-terms
vibe: clean
length: 159
useWhen:
  - "A beat that maps familiar concepts to your product, such as a scene is a component."
  - "A short run of three to five equivalences that should build up and end on the key claim."
avoidWhen:
  - "You need a dictionary-style definition of a single term — use `verbed`."
  - "Each line is a worry answered by a bigger reply, not an equivalence — use `in-proportion`."
  - "You only want a plain list of lines stepping in — use `indent-steps`."
askedAs:
  - "term equals definition pairs"
  - "I want familiar concepts mapped to my product"
  - "three to five equivalents like a scene is a component"
  - "pairs pushing each other into place ending in accent"
  - "glossary style lines"
  - "a is b mapping text"
---

<ComponentPreview name="known-terms" />

<InstallBlock name="known-terms" />

## Usage

```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { KnownTerms } from "@/components/remocn/known-terms";

const KnownTermsScene = () => (
  <KnownTerms
    pairs={[
      { video: "A scene", dev: "a component." },
      { video: "An edit", dev: "a commit." },
      { video: "Your launch", dev: "a deploy." },
    ]}
  />
);

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

A term appears alone in the center, then slides left as its counterpart pushes in from the right with a dim joiner word between them. Earlier pairs dim as new ones stack beneath, and the last pair turns the accent color. Pass `pairs` as `{ video, dev, joiner? }`; `joiner` sets the default connector word. Timing adapts to the composition length; 159 frames assumes five pairs in 180. It ships light and dark.

<PropsTable title="Props"
  rows={[
    {
      name: "pairs",
      type: "{ video: string; dev: string; joiner?: string }[]",
      default: "DEFAULT_PAIRS",
      description: "Term and counterpart pairs; a pair's own joiner overrides the default.",
    },
    {
      name: "joiner",
      type: "string",
      default: "\"is\"",
      description: "Default connector word shown between the two halves.",
    },
    {
      name: "accent",
      type: "string",
      description: "Color of the final pair; overrides the theme accent.",
    },
    {
      name: "background",
      type: "string",
      description: "Background fill; pass \"transparent\" to drop it.",
    },
    {
      name: "speed",
      type: "number",
      default: "1",
      description: "Playback speed multiplier for the whole timeline.",
    },
    {
      name: "theme",
      type: "\"dark\" | \"light\"",
      default: "\"dark\"",
      description: "Light or dark palette.",
    },
  ]}
/>