Slit Reveal

A point of light draws a hairline that opens onto a product scene, with a glow ring below. A free, MIT-licensed Remotion transition.

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

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { SlitReveal } from "@/components/remocn/slit-reveal";
 
const SlitRevealScene = () => (
  <SlitReveal
    title="Introducing remocn"
    src="/images/app-screenshot.png"
    opening="letterbox"
    accent="#3B5BFD"
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="SlitReveal"
    component={SlitRevealScene}
    durationInFrames={160}
    fps={30}
    width={1280}
    height={720}
  />
);

A point of light draws out into a hairline with the title riding on it. The line then opens like a slit, letterbox style or sideways, onto the scene you pass as children or src, which settles out of a soft blur. Without either it shows a built-in product mock. With opening="letterbox" the reveal settles by frame 132, and sideways by frame 152.

Props14

PropTypeDefault
title
string"Introducing remocn"

Line of type that rides the hairline before it opens

children
React.ReactNode—

Scene revealed in the slit; wins over src

src
string—

Screenshot revealed in the slit, filled to cover

opening
"letterbox" | "sideways""letterbox"

Letterbox opens top and bottom; sideways rolls the line upright

glow
number1

Spread of the soft light around the hairline

accent
string"#3B5BFD"

Color of the light and the default product mock

ink
string—

Text color of the title; overrides the default off-white.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Newsreader"

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

logo
React.ReactNode—

Replaces the remocn mark in a title that ends in remocn.

scale
number1

Size of the title around the frame's center; the slit and scene stay put.

grain
booleantrue

Film grain over the scene.

speed
number1

Playback multiplier for the whole timeline

delay
number0

Frames to hold the first frame before anything moves.

  • titlestring

    Line of type that rides the hairline before it opens

    Default"Introducing remocn"

  • childrenReact.ReactNode

    Scene revealed in the slit; wins over src

  • srcstring

    Screenshot revealed in the slit, filled to cover

  • opening"letterbox" | "sideways"

    Letterbox opens top and bottom; sideways rolls the line upright

    Default"letterbox"

  • glownumber

    Spread of the soft light around the hairline

    Default1

  • accentstring

    Color of the light and the default product mock

    Default"#3B5BFD"

  • inkstring

    Text color of the title; overrides the default off-white.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

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

    Default"Newsreader"

  • logoReact.ReactNode

    Replaces the remocn mark in a title that ends in remocn.

  • scalenumber

    Size of the title around the frame's center; the slit and scene stay put.

    Default1

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • speednumber

    Playback multiplier for the whole timeline

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0