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.
$ pnpm dlx shadcn@latest add @remocn/hairline-openHow 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:
npx shadcn@latest add @remocn/hairline-open- The
fromstatement sits on the stage, a hairline of light draws across the middle (frames 8–26), holds forholdframes, then the frame splits open (from frame 36 with the defaulthold) and thetostatement settles in, in Instrument Serif italic by default. fromandtotake 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
TransitionSeriespresentation: put it in aSequenceof 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 itsSequence; add your own hold on top. The Usage example below is a 60 fps composition with a hold, so itsdurationInFrames(210) is longer than 156. see Frame rate. - Installs:
remotionand@remotion/google-fontsfrom npm, plus the remocn helpersglideandframe-rate. No@remotion/transitionsneeded. - Font: loads Instrument Serif 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 { 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
| Prop | Type | Default |
|---|---|---|
| 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.
Default
true - holdnumber
Frames the drawn hairline holds before the frame splits open.
Default
10 - 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 - speednumber
Playback multiplier for the whole timeline
Default
1