Scrub Reveal

A dim paragraph climbs up the frame while a soft moving front lights it word by word, like scrolling a page, with one phrase in a gradient serif italic: a manifesto or value statement beat. A free, MIT-licensed Remotion text animation.

In Remotion, Scrub Reveal shows a dim paragraph that climbs up the frame while a soft front lights it word by word, like scrolling through a page, with one phrase switching to a gradient serif italic. Use it for a manifesto or value statement.

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

How to make a manifesto paragraph brighten word by word in Remotion

A dim manifesto paragraph that brightens word by word as a soft front moves through it, like scrolling a page, with one phrase in gradient italic, is one component. You do not need per-word opacity math, fitText or measureText from @remotion/layout-utils, or your own background-clip: text italic span:

bash
npx shadcn@latest add @remocn/scrub-reveal
  • text is the paragraph; highlight is a phrase inside it set in Newsreader italic with a gradient fill ending in accent. Pass "" for none.
  • scrub sets how many frames the front takes to cross the text. Word colors blend with interpolateColors, and the climb is a translate, so lines do not reflow.
  • Geist and Newsreader load through @remotion/google-fonts inside the component; fontFamily swaps the paragraph face.

For a light sheen across muted text use Shimmer Sweep; for a marker block behind a phrase use Marker Highlight.

Good to know

  • Length: 142 frames of motion at 30 fps (284 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 numbers are doubled. The component's own props counted in frames stay in 30 fps frames at any frame rate, see Frame rate.

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { ScrubReveal } from "@/components/remocn/scrub-reveal";
 
const ScrubRevealScene = () => (
  <ScrubReveal
    text="Every frame is code. Every cut is yours. Ship the film your product deserves."
    highlight="Every cut is yours."
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="ScrubReveal"
    component={ScrubRevealScene}
    durationInFrames={344}
    fps={60}
    width={1280}
    height={720}
  />
);

A dim paragraph sits low in the frame and climbs while a soft front brightens it word by word, like a trackpad scroll. The highlight phrase inside text switches to a serif italic filled with a gradient, and at the end the plain words settle back a step. Pass your own text and a highlight that appears in it, or an empty string for none. It ships light and dark.

Props12

PropTypeDefault
text
string"Every frame is code. Every cut is yours. Ship the film your product deserves."

The statement. Each word brightens as the reveal front passes it.

highlight
string"Every cut is yours."

A phrase inside `text` that turns to an italic serif and lights up in a gradient. Pass "" for none.

scrub
number118

Frames the reveal front takes to cross the text.

fontWeight
number500

Weight of the statement.

accent
string"#3B5BFD"

Final stop of the highlight gradient.

ink
string—

Text color of the lit words; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Geist"

Typeface for the statement; the highlight keeps its italic serif. Load the font in your project first.

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.

speed
number1

Playback multiplier.

theme
"dark" | "light""dark"

Light or dark palette.

  • textstring

    The statement. Each word brightens as the reveal front passes it.

    Default"Every frame is code. Every cut is yours. Ship the film your product deserves."

  • highlightstring

    A phrase inside `text` that turns to an italic serif and lights up in a gradient. Pass "" for none.

    Default"Every cut is yours."

  • scrubnumber

    Frames the reveal front takes to cross the text.

    Default118

  • fontWeightnumber

    Weight of the statement.

    Default500

  • accentstring

    Final stop of the highlight gradient.

    Default"#3B5BFD"

  • inkstring

    Text color of the lit words; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the statement; the highlight keeps its italic serif. Load the font in your project first.

    Default"Geist"

  • 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

  • speednumber

    Playback multiplier.

    Default1

  • theme"dark" | "light"

    Light or dark palette.

    Default"dark"