What the block does
- Select a target date and time using the built-in DateTimePicker
- Shows a live countdown preview in the editor (updates every second)
- Provides an “end message” text displayed after the countdown reaches zero
- Offers multiple display options:
- Text-only mode (single
DD:HH:MM:SSstring) - Segmented mode (days / hours / minutes / seconds blocks)
- Text-only mode (single
- Optional styling toggles:
- Circle mode (adds a
.circleclass) - Show labels toggle (Nap / Óra / Perc / Másodperc, fully editable)
- Circle mode (adds a
How it works (output)
On save, the block outputs a countdown wrapper with:
- a
data-dateattribute containing the target ISO date string - CSS classes based on the selected style options:
circle(optional)text-only(optional)
The frontend timer is designed to be driven by a script that reads the data-date value and updates the displayed countdown.
Editor-friendly localization
All visible labels (Days, Hours, Minutes, Seconds, end text) are editable block settings, making it easy to match the site language and tone without code changes.
Reviews
There are no reviews yet.