Aspect Slit
A film-title card opens through a slit, with a serif hero line and a small caption. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/aspect-slitUsage
// src/Root.tsx
import { Composition } from "remotion";
import { AspectSlit } from "@/components/remocn/aspect-slit";
const AspectSlitScene = () => <AspectSlit title="Now showing." caption="A launch film, built in React." slit={0.125} />;
export const RemotionRoot = () => (
<Composition
id="AspectSlit"
component={AspectSlitScene}
durationInFrames={360}
fps={60}
width={1280}
height={720}
/>
);Letterbox bars close to a thin slit, a serif title rises into it, then the bars open back to full frame as the title grows to hero size and a small caption settles underneath. Pass title, caption and slit (the narrowest bar gap as a share of frame height).
Props13
| Prop | Type | Default |
|---|---|---|
| title | string"Now showing." Short title. It first appears inside the slit, then grows to hero size. | |
| caption | string"A launch film, built in React." Small line under the hero title. Pass "" to hide. | |
| slit | number0.125 Height of the narrowest slit, as a share of the frame height. | |
| accent | string"#3B5BFD" Accent color for the background light and the title full stop. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Solid fill in place of the gradient ground; pass "transparent" to drop it. | |
| barColor | string"#0A0A0B" Color of the letterbox bars. | |
| fontFamily | string"Instrument Serif" Typeface for the title. Load the font in your project first. | |
| 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. | |
| theme | "dark" | "light""dark" Color scheme; ships dark and light. | |
- titlestring
Short title. It first appears inside the slit, then grows to hero size.
Default
"Now showing." - captionstring
Small line under the hero title. Pass "" to hide.
Default
"A launch film, built in React." - slitnumber
Height of the narrowest slit, as a share of the frame height.
Default
0.125 - accentstring
Accent color for the background light and the title full stop.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Solid fill in place of the gradient ground; pass "transparent" to drop it.
- barColorstring
Color of the letterbox bars.
Default
"#0A0A0B" - fontFamilystring
Typeface for the title. Load the font in your project first.
Default
"Instrument Serif" - 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.
Default
1 - theme"dark" | "light"
Color scheme; ships dark and light.
Default
"dark"