Hairline Open
A hairline of light draws across the frame and opens like a slit onto the next serif statement. A free, MIT-licensed Remotion transition.
$ pnpm dlx shadcn@latest add @remocn/hairline-openUsage
// 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={105}
fps={30}
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