Scan Reveal

A horizontal scan line moves down a section heading and reveals it over an underline, then rises and parks while a small subtitle fades in below. A free, MIT-licensed Remotion text animation.

In Remotion, Scan Reveal uncovers a section heading with a horizontal scan line moving down, over an underline, then parks the line while a small subtitle fades in below. Use it for a chapter or section title with a precise, technical tone.

Installation
$ pnpm dlx shadcn@latest add @remocn/scan-reveal

How to reveal a heading with a horizontal scan line in Remotion

A section title revealed by a scan line sweeping down, with an underline and a little subtitle, is one component. You don't need to animate a clipPath with interpolate() yourself. Install it and pass the two lines:

bash
npx shadcn@latest add @remocn/scan-reveal
  • Guide marks appear first, then the scan line travels down over scan frames (56 by default) and reveals the title above it. After the sweep it moves back up and parks while the subtitle fades in beneath the underline.
  • guides toggles the baseline guides and dot grid, grain the film grain; accent colors the line.
  • Each phase is an element in timeline.ts, so the timing prop can move or stretch it by id.

For several headlines in a row use Rewrite Bars; for a soft blurred entrance use Focus Blur Resolve.

Good to know

  • Length: 107 frames of motion at 30 fps (214 at 60 fps) with the default props. That is the minimum for its Sequence; add your own hold on top. The Usage example below is a 60 fps composition with a hold, so its durationInFrames is longer than twice the motion. The component's own props counted in frames stay in 30 fps frames at any frame rate, see Frame rate.
  • Installs: remotion, @remotion/google-fonts from npm, plus the remocn helpers frame-rate, timeline. The shadcn CLI copies the source into your project; nothing else is needed at runtime.
  • Font: loads Space Grotesk itself through @remotion/google-fonts. Pass fontFamily to use your own face, and load that font in your project.

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={284}
    fps={60}
    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.

Props13

PropTypeDefault
title
string"Built frame by frame"

The headline revealed by the scan.

subtitle
string"Launch films from components you own."

One-line subtitle under the headline.

scan
number56

Frames the scan line takes to sweep down the title.

guides
booleantrue

Baseline guides and dot grid behind the type.

accent
string"#3B5BFD"

Accent colour (any CSS colour).

ink
string—

Color of the halftone title before it develops; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Space Grotesk"

Typeface for the copy. Load the font in your project first.

grain
booleantrue

Film grain over the scene.

scale
number1

Size of the foreground around the frame's center; the background stays put.

delay
number0

Frames to hold the first frame before anything moves.

theme
"dark" | "light""dark"

Colour scheme; ships light and dark.

speed
number1

Playback multiplier; above 1 plays faster.

  • titlestring

    The headline revealed by the scan.

    Default"Built frame by frame"

  • subtitlestring

    One-line subtitle under the headline.

    Default"Launch films from components you own."

  • scannumber

    Frames the scan line takes to sweep down the title.

    Default56

  • guidesboolean

    Baseline guides and dot grid behind the type.

    Defaulttrue

  • accentstring

    Accent colour (any CSS colour).

    Default"#3B5BFD"

  • inkstring

    Color of the halftone title before it develops; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the copy. Load the font in your project first.

    Default"Space Grotesk"

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • scalenumber

    Size of the foreground around the frame's center; the background stays put.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • theme"dark" | "light"

    Colour scheme; ships light and dark.

    Default"dark"

  • speednumber

    Playback multiplier; above 1 plays faster.

    Default1