Lights Out
Five lights go out one by one and a heavy italic headline slams in with an accent period. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/lights-outUsage
// src/Root.tsx
import { Composition } from "remotion";
import { LightsOut } from "@/components/remocn/lights-out";
const LightsOutScene = () => (
<LightsOut title="SHIP IT." beat={10} hold={24} accent="#3B5BFD" />
);
export const RemotionRoot = () => (
<Composition
id="LightsOut"
component={LightsOutScene}
durationInFrames={224}
fps={60}
width={1280}
height={720}
/>
);Five lights light up on the beat, hold, then go out and the headline slams in with a camera push and an accent period. Pass title (set in capitals), beat for the light interval and hold for the pause before they go out; it ships light and dark through theme.
Props13
| Prop | Type | Default |
|---|---|---|
| title | string"SHIP IT." Headline slammed in after the lights go out | |
| beat | number10 Frames between each light turning on | |
| hold | number24 Frames all lights stay on before going out | |
| slant | number11 Oblique slant of the headline, in degrees. | |
| glow | booleantrue Warm glow that rises from below as the lamps come on. | |
| accent | string"#3B5BFD" Accent color (any valid CSS color) | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Unbounded" Typeface for the copy. Load the font in your project first. | |
| theme | "dark" | "light""dark" Ships light and dark palettes | |
| 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 speed multiplier | |
- titlestring
Headline slammed in after the lights go out
Default
"SHIP IT." - beatnumber
Frames between each light turning on
Default
10 - holdnumber
Frames all lights stay on before going out
Default
24 - slantnumber
Oblique slant of the headline, in degrees.
Default
11 - glowboolean
Warm glow that rises from below as the lamps come on.
Default
true - accentstring
Accent color (any valid CSS color)
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Unbounded" - theme"dark" | "light"
Ships light and dark palettes
Default
"dark" - 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 speed multiplier
Default
1