Spotlight Text

A spotlight travels across a dark headline, 'Launch videos, in code.', with a mono eyebrow. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/spotlight-text

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { SpotlightText } from "@/components/remocn/spotlight-text";
 
const SpotlightTextScene = () => (
  <SpotlightText title="Launch videos, in code." eyebrow="remocn 2.0" />
);
 
export const RemotionRoot = () => (
  <Composition
    id="SpotlightText"
    component={SpotlightTextScene}
    durationInFrames={360}
    fps={60}
    width={1280}
    height={720}
  />
);

A soft spotlight enters and glides across the single-line headline, lighting it as it passes and widening until the whole line is lit. Pass title and eyebrow; it ships light and dark.

Props12

PropTypeDefault
title
string"Launch videos, in code."

The headline the light travels across. One line.

eyebrow
string"remocn 2.0"

Tiny mono label above the headline's left edge. Empty to hide.

sweep
number78

Frames for the light's pass across the headline.

spotSize
number1.25

Radius of the travelling spotlight, in em of the headline.

accent
string"#3B5BFD"

Faint tint at the rim of the spotlight, and the eyebrow marker.

ink
string—

Text color of the lit headline, as hex; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Geist"

Typeface for the copy. 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"

Colour scheme; ships light and dark.

  • titlestring

    The headline the light travels across. One line.

    Default"Launch videos, in code."

  • eyebrowstring

    Tiny mono label above the headline's left edge. Empty to hide.

    Default"remocn 2.0"

  • sweepnumber

    Frames for the light's pass across the headline.

    Default78

  • spotSizenumber

    Radius of the travelling spotlight, in em of the headline.

    Default1.25

  • accentstring

    Faint tint at the rim of the spotlight, and the eyebrow marker.

    Default"#3B5BFD"

  • inkstring

    Text color of the lit headline, as hex; 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"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"

    Colour scheme; ships light and dark.

    Default"dark"