Clock Sweep

A clock hand sweeps a glowing wedge as the line From idea to video in 4 minutes appears

Installation
$ pnpm dlx shadcn@latest add @remocn/clock-sweep

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { ClockSweep } from "@/components/remocn/clock-sweep";
 
const ClockSweepScene = () => <ClockSweep minutes={4} title={"From idea to video\nin 4 minutes"} />;
 
export const RemotionRoot = () => (
  <Composition
    id="ClockSweep"
    component={ClockSweepScene}
    durationInFrames={150}
    fps={30}
    width={1280}
    height={720}
  />
);

A ticked clock dial draws in and its hand sweeps a glowing wedge across the given number of minutes while an mm:ss readout counts with it. The hand settles with a small kick, the dial glides to the left and a headline fades in word by word on the right with the number highlighted. Pass minutes and optionally title, which defaults to 'From idea to video in N minutes'. It ships light and dark through the theme prop.

Props5

PropTypeDefault
minutes
number4

Minutes the hand sweeps, between 0.25 and 59.

title
string—

Headline on the right; use a line break to split lines. Auto-built from minutes if omitted.

accent
string"#3B5BFD"

Colour of the wedge, hand and highlighted number in the headline.

theme
"dark" | "light""dark"

Ships light and dark.

speed
number1

Playback speed multiplier; 1 is the designed pace.

  • minutesnumber

    Minutes the hand sweeps, between 0.25 and 59.

    Default4

  • titlestring

    Headline on the right; use a line break to split lines. Auto-built from minutes if omitted.

  • accentstring

    Colour of the wedge, hand and highlighted number in the headline.

    Default"#3B5BFD"

  • theme"dark" | "light"

    Ships light and dark.

    Default"dark"

  • speednumber

    Playback speed multiplier; 1 is the designed pace.

    Default1