Hairline Open

A thin line of light draws across the screen and opens like a slit onto the next serif statement: a calm, editorial transition between two headlines or two scenes. A free, MIT-licensed Remotion transition.

In Remotion, Hairline Open is a transition where a thin line of light draws across the screen, holds, then opens like a slit onto the next serif statement. It is a self-contained scene: pass the outgoing and incoming statements as from and to, as text or as your own React scenes.

Installation
$ pnpm dlx shadcn@latest add @remocn/hairline-open

How to open a line of light onto the next statement in Remotion

You don't need @remotion/transitions, a custom presentation or animated clip-path code. Install the component and give it both sides of the cut:

bash
npx shadcn@latest add @remocn/hairline-open
  • The from statement sits on the stage, a hairline of light draws across the middle (frames 8–26), holds for hold frames, then the frame splits open (from frame 36 with the default hold) and the to statement settles in, in Instrument Serif italic by default.
  • from and to take a string or any React node. A string is set as a centered headline sized to fit the frame. Anything else (for example an existing scene component) is placed full-frame as is, so <HairlineOpen from={<MyPlanScene />} to={<MyResultScene />} /> works.
  • It is a component, not a TransitionSeries presentation: put it in a Sequence of its own between your other scenes.

If you want a product screenshot revealed inside the slit, use Slit Reveal; for a thick band, Band Open.

Good to know

  • Length: 78 frames of motion at 30 fps (156 at 60 fps) with the default hold. 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 (210) is longer than 156. see Frame rate.
  • Installs: remotion and @remotion/google-fonts from npm, plus the remocn helpers glide and frame-rate. No @remotion/transitions needed.
  • Font: loads Instrument Serif 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 { HairlineOpen } from "@/components/remocn/hairline-open";
 
const HairlineOpenScene = () => (
  <HairlineOpen
    from="Write the story"
    to="Ship the film"
    accent="#3B5BFD"
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="HairlineOpen"
    component={HairlineOpenScene}
    durationInFrames={210}
    fps={60}
    width={1280}
    height={720}
  />
);

The from statement sits on the stage. A hairline of light draws across the middle, shears slightly, then opens like a slit as the outgoing scene splits away, revealing the to statement on a soft gradient. Pass from and to as short text or any React node; it ships light and dark and settles by frame 78.

Props13

PropTypeDefault
from
React.ReactNode"Write the story"

Outgoing statement: a short headline or any React node

to
React.ReactNode"Ship the film"

Incoming statement: a short headline or any React node

accent
string"#3B5BFD"

Accent color used by the scenes

theme
"dark" | "light""dark"

Light or dark stage

ink
string—

Text color; overrides the theme ink.

background
string—

Solid fill in place of the gradient ground; pass "transparent" to drop it.

fontFamily
string"Instrument Serif"

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

italic
booleantrue

Sets the incoming statement in italic.

hold
number10

Frames the drawn hairline holds before the frame splits open.

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.

speed
number1

Playback multiplier for the whole timeline

  • fromReact.ReactNode

    Outgoing statement: a short headline or any React node

    Default"Write the story"

  • toReact.ReactNode

    Incoming statement: a short headline or any React node

    Default"Ship the film"

  • accentstring

    Accent color used by the scenes

    Default"#3B5BFD"

  • theme"dark" | "light"

    Light or dark stage

    Default"dark"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Solid fill in place of the gradient ground; pass "transparent" to drop it.

  • fontFamilystring

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

    Default"Instrument Serif"

  • italicboolean

    Sets the incoming statement in italic.

    Defaulttrue

  • holdnumber

    Frames the drawn hairline holds before the frame splits open.

    Default10

  • 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

  • speednumber

    Playback multiplier for the whole timeline

    Default1