Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

3.2 KB
Raw Blame
---
title: Drop Timer
description: "A countdown to a drop ends in a huge gradient 'LIVE NOW' with a URL and logo"
component: drop-timer
vibe: playful
length: 111
useWhen:
  - "A product drop or launch teaser that counts down and smashes into a huge LIVE NOW payoff."
  - "A release-day video that ends on a URL and your logo."
avoidWhen:
  - "You want an escalating word sequence instead of a clock — use `escalate-cards`."
  - "You want a rolling number, not a countdown — use `rolling-number`."
askedAs:
  - "product drop countdown"
  - "I want a countdown that ends in a huge live now banner"
  - "release day teaser smashing into a URL and logo"
  - "build hype before a launch then reveal it is live"
  - "countdown to live now"
  - "launch day timer payoff"
---

<ComponentPreview name="drop-timer" />

<InstallBlock name="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.

<PropsTable title="Props"
  rows={[
    {
      name: "label",
      type: "string",
      default: "\"DROPS IN\"",
      description: "Small line over the countdown.",
    },
    {
      name: "from",
      type: "number",
      default: "5",
      description: "Seconds on the clock when the shot opens; it counts down to zero.",
    },
    {
      name: "tick",
      type: "number",
      default: "14",
      description: "Frames per counted second (a film second, not a real one).",
    },
    {
      name: "units",
      type: "[string, string, string]",
      default: "[\"HRS\", \"MIN\", \"SEC\"]",
      description: "Unit captions under the three digit pairs.",
    },
    {
      name: "live",
      type: "string",
      default: "\"LIVE NOW\"",
      description: "What the clock smashes into at zero, set full-bleed.",
    },
    {
      name: "name",
      type: "string",
      default: "\"remocn\"",
      description: "Brand over the payoff; \"remocn\" renders the real logo.",
    },
    {
      name: "logo",
      type: "React.ReactNode",
      description: "Replaces the logo / name over the payoff.",
    },
    {
      name: "url",
      type: "string",
      default: "\"remocn.dev\"",
      description: "Line under the payoff.",
    },
    {
      name: "accent",
      type: "string",
      default: "\"#3B5BFD\"",
      description: "The small \"live\" dot beside the url.",
    },
    {
      name: "theme",
      type: "\"dark\" | \"light\"",
      default: "\"dark\"",
      description: "Colour scheme; ships light and dark.",
    },
    {
      name: "speed",
      type: "number",
      default: "1",
      description: "Playback multiplier; above 1 plays faster.",
    },
  ]}
/>