Skip to content

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

2.3 KB
Raw Blame
---
title: Scan Reveal
description: "A scan line reveals a headline over an underline with a small subtitle below"
component: scan-reveal
vibe: premium
length: 107
useWhen:
  - "A section title where a scan line sweeps down and reveals the headline over an underline."
  - "A short opener with a headline and one-line subtitle, in a precise, technical tone."
avoidWhen:
  - "You need several headlines in sequence — use `rewrite-bars`."
  - "You want a soft blurred entrance instead of a scan — use `focus-blur-resolve`."
askedAs:
  - "scan line reveals title"
  - "headline over underline subtitle"
  - "I want a thin bar sweeping down to uncover a section title"
  - "section opener with a scanner effect and small subtitle below"
  - "tech feel title reveal using a laser line"
  - "viewer sees a new chapter begin as a scanner exposes the heading"
---

<ComponentPreview name="scan-reveal" />

<InstallBlock name="scan-reveal" />

## Usage

```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { ScanReveal } from "@/components/remocn/scan-reveal";

const ScanRevealScene = () => (
  <ScanReveal title="Built frame by frame" subtitle="Launch films from components you own." />
);

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

Guide marks appear, a scan line travels down to reveal the headline, then it moves up and parks while the subtitle fades in beneath. Pass `title` and `subtitle`; it ships light and dark.

<PropsTable title="Props"
  rows={[
    {
      name: "title",
      type: "string",
      default: "\"Built frame by frame\"",
      description: "The headline revealed by the scan.",
    },
    {
      name: "subtitle",
      type: "string",
      default: "\"Launch films from components you own.\"",
      description: "One-line subtitle under the headline.",
    },
    {
      name: "accent",
      type: "string",
      default: "\"#3B5BFD\"",
      description: "Accent colour (any CSS colour).",
    },
    {
      name: "theme",
      type: "\"dark\" | \"light\"",
      default: "\"dark\"",
      description: "Colour scheme; ships light and dark.",
    },
    {
      name: "speed",
      type: "number",
      default: "1",
      description: "Playback multiplier; above 1 plays faster.",
    },
  ]}
/>