Shot Clock
A shot clock counts down to 0.0 in red, then 'SHIPPED' lands 'at the buzzer'. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/shot-clockUsage
// src/Root.tsx
import { Composition } from "remotion";
import { ShotClock } from "@/components/remocn/shot-clock";
const ShotClockScene = () => (
<ShotClock
from={24}
title="Shipped"
subtitle="at the buzzer"
period="Q4 · 00:24"
/>
);
export const RemotionRoot = () => (
<Composition
id="ShotClock"
component={ShotClockScene}
durationInFrames={330}
fps={60}
width={1280}
height={720}
/>
);A large shot clock drops in with a light bar above and a possession bar below. Whole seconds tick down, the clock turns red at the tenths threshold and counts tenths, and at 0.0 the frame flashes and the light stays lit. The clock then shrinks upward and the title and subtitle slam in. Pass from, title, subtitle, label and period. It ships light and dark through the theme prop.
Props17
| Prop | Type | Default |
|---|---|---|
| from | number24 Seconds on the clock when it starts. Whole seconds, then tenths below `tenthsBelow`. | |
| tenthsBelow | number5 Below this many seconds the clock shows tenths and turns red. | |
| title | string"Shipped" The big word that slams in at the buzzer. Set in caps. | |
| subtitle | string"at the buzzer" The line under it. | |
| label | string"Shot clock" Small label over the clock, left. | |
| period | string"Q4 · 00:24" Small label over the clock, right. | |
| tick | number2.6 Frames per whole-second tick. | |
| hold | number6 Frames the 0.0 holds at the buzzer before the clock shrinks away. | |
| alarm | string"#FF4433" Colour of the last seconds and the buzzer light. | |
| accent | string"#3B5BFD" The live marker next to the period label. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Azeret Mono" Typeface for the copy. Load the font in your project first. | |
| 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. | |
| theme | "dark" | "light""dark" Ships light and dark. | |
| speed | number1 Playback speed multiplier; 1 is the designed pace. | |
- fromnumber
Seconds on the clock when it starts. Whole seconds, then tenths below `tenthsBelow`.
Default
24 - tenthsBelownumber
Below this many seconds the clock shows tenths and turns red.
Default
5 - titlestring
The big word that slams in at the buzzer. Set in caps.
Default
"Shipped" - subtitlestring
The line under it.
Default
"at the buzzer" - labelstring
Small label over the clock, left.
Default
"Shot clock" - periodstring
Small label over the clock, right.
Default
"Q4 · 00:24" - ticknumber
Frames per whole-second tick.
Default
2.6 - holdnumber
Frames the 0.0 holds at the buzzer before the clock shrinks away.
Default
6 - alarmstring
Colour of the last seconds and the buzzer light.
Default
"#FF4433" - accentstring
The live marker next to the period label.
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
"Azeret Mono" - 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 - theme"dark" | "light"
Ships light and dark.
Default
"dark" - speednumber
Playback speed multiplier; 1 is the designed pace.
Default
1