Countdown Widget
Embed a lightweight countdown on your website.
- Choose the timer settings
- Copy the generated code
- Place it on the target page
- Test size, privacy and loading
Copy this snippet
<script src="https://clockfresh.com/embed/countdown.js" data-target="2027-01-01T00:00:00Z" data-label="New Year" data-accent="#20b6a2" async></script> Install recipes
Launch page
<script src="https://clockfresh.com/embed/countdown.js" data-target="2027-01-01T00:00:00Z" data-label="Launch day" data-accent="#f97316" async></script> Classroom event
<script src="https://clockfresh.com/embed/countdown.js" data-target="2027-06-01T09:00:00Z" data-label="Exam starts" data-accent="#38bdf8" async></script> Community fundraiser
<script src="https://clockfresh.com/embed/countdown.js" data-target="2027-12-31T23:59:00Z" data-label="Campaign ends" data-accent="#a3e635" async></script> Options
data-target- Required ISO date/time, for example
2027-01-01T00:00:00Z. data-locale- Optional widget language:
en,es,pt,it,ru,fr, orde. data-label- Optional title shown above the countdown.
data-accent- Optional hex accent color.
Attribution and privacy
The free widget includes a small Clockfresh link so visitors can open a full countdown page if they need fullscreen, sharing or a timer handoff. It does not require an account, iframe or third-party widget platform.
Security and CSP notes
Load the snippet with async so it does not block your page. If your site uses a
strict Content Security Policy, allow https://clockfresh.com/embed/countdown.js
in script-src. The widget renders inside Shadow DOM and injects local styles, so
strict style-src policies may need a small exception for the widget container.
Good fits
- Launch and campaign landing pages that need a visible deadline.
- Classroom, school and event pages where a public countdown reduces confusion.
- Internal wiki pages that track a release, audit, exam or meeting milestone.
Related tools
Create countdown Countdown Timer widget
Questions
- Is the widget an iframe?
- No. It is a small script that renders a Shadow DOM countdown card.
- Can I change the label and color?
- Yes. Use data-label and data-accent attributes.
- Does it show a Clockfresh link?
- Yes. The free widget includes a small attribution link.
- Does the widget track visitors?
- No. The widget is a lightweight static script that runs in the visitor browser.