Drop Timer

A countdown to a drop ends in a huge gradient 'LIVE NOW' with a URL and logo. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/drop-timer

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { DropTimer } from "@/components/remocn/drop-timer";
 
const DropTimerScene = () => (
  <DropTimer label="DROPS IN" from={5} live="LIVE NOW" url="acme.dev" />
);
 
export const RemotionRoot = () => (
  <Composition
    id="DropTimer"
    component={DropTimerScene}
    durationInFrames={140}
    fps={30}
    width={1280}
    height={720}
  />
);

A clock counts down from from seconds, one film second per tick frames, and at zero it smashes into a full-bleed gradient payoff with your name, URL and a live dot. Pass label, from, live, name and url; it ships light and dark.

Props17

PropTypeDefault
label
string"DROPS IN"

Small line over the countdown.

from
number5

Seconds on the clock when the shot opens; it counts down to zero.

tick
number14

Frames per counted second (a film second, not a real one).

hold
number8

Frames 00:00:00 holds before the smash.

units
[string, string, string]["HRS", "MIN", "SEC"]

Unit captions under the three digit pairs.

live
string"LIVE NOW"

What the clock smashes into at zero, set full-bleed.

name
string"remocn"

Brand over the payoff; "remocn" renders the real logo.

logo
React.ReactNode—

Replaces the logo / name over the payoff.

url
string"remocn.dev"

Line under the payoff.

accent
string"#3B5BFD"

The small "live" dot beside the url.

ink
string—

Text color of the payoff and the label at zero; overrides the theme ink.

background
string—

Solid fill in place of the colour-cut grounds; pass "transparent" to drop it.

fontFamily
string"Big Shoulders"

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"

Colour scheme; ships light and dark.

speed
number1

Playback multiplier; above 1 plays faster.

  • labelstring

    Small line over the countdown.

    Default"DROPS IN"

  • fromnumber

    Seconds on the clock when the shot opens; it counts down to zero.

    Default5

  • ticknumber

    Frames per counted second (a film second, not a real one).

    Default14

  • holdnumber

    Frames 00:00:00 holds before the smash.

    Default8

  • units[string, string, string]

    Unit captions under the three digit pairs.

    Default["HRS", "MIN", "SEC"]

  • livestring

    What the clock smashes into at zero, set full-bleed.

    Default"LIVE NOW"

  • namestring

    Brand over the payoff; "remocn" renders the real logo.

    Default"remocn"

  • logoReact.ReactNode

    Replaces the logo / name over the payoff.

  • urlstring

    Line under the payoff.

    Default"remocn.dev"

  • accentstring

    The small "live" dot beside the url.

    Default"#3B5BFD"

  • inkstring

    Text color of the payoff and the label at zero; overrides the theme ink.

  • backgroundstring

    Solid fill in place of the colour-cut grounds; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the copy. Load the font in your project first.

    Default"Big Shoulders"

  • scalenumber

    Size of the foreground around the frame's center; the background stays put.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • theme"dark" | "light"

    Colour scheme; ships light and dark.

    Default"dark"

  • speednumber

    Playback multiplier; above 1 plays faster.

    Default1