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.
$ pnpm dlx shadcn@latest add @remocn/scan-revealHow 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:
npx shadcn@latest add @remocn/scan-reveal- Guide marks appear first, then the scan line travels down over
scanframes (56 by default) and reveals thetitleabove it. After the sweep it moves back up and parks while thesubtitlefades in beneath the underline. - The underline is the scan line itself: once the sweep is done it parks under the headline and stretches across the frame into a thin rule. Its color is
accent(#3B5BFDby default); there is no separate underline width or style prop, so edit the copied file for that. - Before the line passes, the headline is a halftone dot pattern in
ink; above the line it develops into a solid fill with a soft silk gradient (peach to violet on dark, blue to violet on light) that drifts slightly during the hold. - Final frame: the gradient headline, the accent rule under it, and the subtitle in a muted gray below; the guides have faded out.
guidestoggles the baseline guides and dot grid,grainthe film grain.- Each phase is an element in
timeline.ts, so thetimingprop 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 itsdurationInFramesis 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-fontsfrom npm, plus the remocn helpersframe-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. PassfontFamilyto use your own face, and load that font in your project.
Usage
// 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.
Props14
| Prop | Type | Default |
|---|---|---|
| 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. | |
| timing | Timing<`guide:${number}` | "line" | "down" | "up" | "park">— Moves, trims or stretches each guide, the line drawing in, the sweep down, the rise back up and the park into the underline, in 30 fps frames. | |
- 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.
Default
56 - guidesboolean
Baseline guides and dot grid behind the type.
Default
true - 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.
Default
true - scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - theme"dark" | "light"
Colour scheme; ships light and dark.
Default
"dark" - speednumber
Playback multiplier; above 1 plays faster.
Default
1 - timingTiming<`guide:${number}` | "line" | "down" | "up" | "park">
Moves, trims or stretches each guide, the line drawing in, the sweep down, the rise back up and the park into the underline, in 30 fps frames.