Skip to content

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

2.4 KB
Raw Blame
---
title: Exactly
description: "A yellow \"Exactly.\" lands first, then \"It's just code.\" completes the answer"
component: exactly
vibe: playful
length: 132
useWhen:
  - "A beat that answers common objections with a one-word agreement."
  - "A short back-and-forth where the reply turns the objection into a selling point."
  - "A two-round sequence of doubt followed by confirmation."
avoidWhen:
  - "You want the answer to appear before the question — use `answer-first`."
  - "The reply is a hard cut over the objection — use `cut-off`."
  - "The objections are small and the answer is one big sentence — use `in-proportion`."
askedAs:
  - "one word agreement reply"
  - "I want a yellow Exactly answering an objection"
  - "back and forth where the reply flips the objection into a positive"
  - "short confirmation line then a simple follow up statement"
  - "yes exactly reply text"
  - "answer objections it is just code"
---

<ComponentPreview name="exactly" />

<InstallBlock name="exactly" />

## Usage

```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { Exactly } from "@/components/remocn/exactly";

const ExactlyScene = () => <Exactly rounds={[{ objection: "It’s just code.", reply: "Exactly." }]} />;

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

Each round types an objection, which drops away as the reply lands beside it and reflows into the final answer; the next round follows. Pass `rounds` (objection and reply pairs); it compresses to fit the composition length.

<PropsTable title="Props"
  rows={[
    {
      name: "rounds",
      type: "ExactlyRound[]",
      default: "DEFAULT_ROUNDS",
      description: "Objection and reply pairs, played in order.",
    },
    {
      name: "accent",
      type: "string",
      description: "Color of the reply; defaults to the theme accent.",
    },
    {
      name: "background",
      type: "string",
      description: "Stage fill color; pass \"transparent\" to overlay your own footage.",
    },
    {
      name: "speed",
      type: "number",
      default: "1",
      description: "Playback multiplier for the whole timeline.",
    },
    {
      name: "theme",
      type: "\"dark\" | \"light\"",
      default: "\"dark\"",
      description: "Color scheme; ships dark and light.",
    },
  ]}
/>