Countdown

Countdown display.

Countdown

Basic

The existing static digit presentation remains the default.

Effects, formats, speed, and custom display

Use the radio control to apply one digit effect to every example. Flip, fade, particle dissolve and gather, and vertical slide only animate changed digits and fall back to an immediate update when reduced motion is enabled.

The highest unit in format absorbs omitted larger units: ss shows total seconds (including values over 60), mm:ss allows minutes over 59, and HH:mm:ss allows hours over 23. Add DD when days should be split out.

Use speed to change the rate (0 freezes, 1 is real time, and 2 is twice as fast). Use either format for token-based output or formatter(time) for custom text; when formatter is provided, format is ignored. Formatter output still passes through the built-in digit renderer, so the selected effect remains active.

API

PROPS

Property
Type
Values
Description
default
Example
More
auto-start
Boolean
true | false
Start the countdown automatically after mounting.
true
—
speed
Number
number >= 0
Countdown speed multiplier. Zero freezes the remaining time.
1
—
value
Number
timestamp
Target timestamp in milliseconds.
—
—
format
String
DD HH mm ss
Display format tokens. The highest visible unit includes omitted larger units.
HH:mm:ss
—
formatter
Function
(time) => string
Format custom text from the remaining time. When provided, it takes precedence over format, and returned digits keep the selected effect.
—
—
effect
String
static | flip | fade | particle | slide
Digit transition effect. Separators remain static.
static
—

EVENTS

Event
Type
Description
default
Example
More
finish
—
Fired at zero.
—
—
change
—
Remaining milliseconds change.
—
—

EXPOSES

Method
Type
Description
default
Example
More
start
—
Resume or pause the countdown imperatively.
—
—
stop
—
Resume or pause the countdown imperatively.
—
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied