N
neokit

Countdown

CSS-based digit flip animation. Set the --value CSS variable (0–999) to display a number with a smooth transition effect. Drive live countdowns via JS.

Basic

A single value renders the number with the transition animation.

countdown 59

Large text with 2 digits

digits=2 zero-pads to at least 2 characters. Combine with Tailwind size utilities for large displays.

countdown font-mono text-6xl digits=2 59

Clock (h / m / s)

Compose multiple Countdown units inline with label text between them.

clock h/m/s 10 h 24 m 59 s

Clock with colons

Use digits=2 on minutes and seconds to keep two-digit formatting.

clock HH:MM:SS 10 : 24 : 59

Large with inline labels

Label text placed after each countdown unit on the same line.

large inline labels
15 days
10 hours
24 min
59 sec

Large with labels underneath

Stack the number above the label using flex-col.

large labels below
15 days
10 hours
24 min
59 sec

In boxes

Wrap each unit in a card-style box using DaisyUI's bg-neutral rounded-box.

boxed countdown
15 days
10 hours
24 min
59 sec

Live countdown

Update --value and aria-label via JS to drive a real countdown. The CSS transition fires automatically on each value change.

live JS-driven countdown
0 hours
0 min
0 sec