Embed a Flip Clock or Countdown in Your Web Page: One iframe Is Enough
This is a snippet you can paste into any website. Paste it, and your page has a flip clock that actually runs — or a countdown to a date you pick.
No plugin, no theme files to edit, no account to create, no payment.
What follows covers four things: how to add it, which styles and modes exist, where it makes sense, and how to make it look like it belongs.
I. Add it to your site in three minutes
Start at the embed builder. Pick a style, a time zone and colours on the left; the preview on the right updates as you go. When you like what you see, hit "show code" and copy the snippet.
Then paste it into your site. Where it goes depends on the platform:
| Platform | Where to paste |
|---|---|
| WordPress | Add a "Custom HTML" block to the post or page |
| Squarespace | Add a Code Block |
| Wix | Add an Embed → Custom Embed |
| Shopify | Switch the page editor to HTML view |
| Webflow | Drop in an Embed component |
| Notion | Type /embed and paste only the address, not the whole snippet |
| Hand-written HTML | Put it straight in the file |
Save, refresh, and the clock is there.
A few places people get stuck: the classic WordPress editor needs "Text" mode rather than "Visual"; page builders like Elementor have an "HTML" widget; and Notion only accepts an address, so paste just the URL from inside the snippet, not the snippet itself.
If the space stays blank after saving, don't blame the snippet — it is almost always your site's CSP blocking the iframe. The fix is in the questions below.
II. Two styles, two modes
Everything you can embed comes in two styles — flip cards or plain digits — and both styles work in two modes: showing the time, or counting down to a date. That is four combinations, and all four are supported.
Here are the two styles showing the time:
Flip on the left, plain digits on the right. Both are real and both are running.
Flip imitates the departure boards in old railway stations and airports. Each digit is split across a horizontal seam, and when the number changes the top half rotates forward. It has presence — good for the top of a page, an event page, anywhere you want people to notice.
Plain digits is just a line of large type. Quiet and legible — good for a sidebar, the middle of an article, a dashboard. Somewhere people want to read the time rather than admire the clock.
In one sentence: if the clock is the decoration, choose flip; if people just need the time, choose plain.
Three sizes cover most cases:
| Where it goes | Width × height |
|---|---|
| Sidebar or card | 320 × 120 |
| Inside body text | 480 × 140 |
| Page-top banner | 728 × 180 |
Narrower than that and the clock scales down as a whole — nothing gets cropped, but the digits get smaller.
The same two styles, counting down
Both of these are counting down to the same date — the left one as flip cards, the right one as plain digits. A countdown is not a third style you have to switch to. In the builder it is simply the second card, and the style switch sits inside that card, so either look is available in either mode.
Two things are worth knowing before you use a countdown.
The date is read in the visitor's own time zone unless you pick one from the list. For a local holiday that is exactly right — everybody counts to their own midnight. For a launch, a stream, or a sale that ends at one global moment, choose the zone, or visitors in different countries will see different numbers.
It stops at zero. The digits freeze on 000:00:00 and the line above them switches to whatever you typed in the closing box. Nothing loops and nothing goes negative, so the snippet can stay on your page after the event has passed.
A flip countdown is wider than a clock — nine cards instead of six — so give it at least 728 × 180. At 320 wide the flip digits drop to about a third of their usual size. A plain countdown needs no extra width at all: it is the same single line of digits as the clock.
III. Where it makes sense

Same snippet, different situations. A few parameters apart.
Event pages. Launches, openings, wedding invitations, New Year pages. A clock that moves carries more weight than a static screenshot.
Opening hours. On a café's, restaurant's or studio's site, a clock showing local time beats writing "Mon–Fri 9:00–18:00". Visitors can see at a glance whether you are open.
Remote teams. Put a client's city on the dashboard and nobody has to do time-zone arithmetic before a call.
Notion pages. A Notion page can hold one too — a team wiki, a class page, a personal dashboard, the page where you keep track of a trip. Notion is the one platform that wants an address rather than code: type /embed, press Enter, and paste the URL from the builder (just the address, not the whole snippet). Drag the block's bottom edge to change the height and the clock scales with it. Notion pages are usually white, so choose the light theme there — a dark clock on a white page loses its colons, which sit outside the cards.
Portfolios and personal blogs. A small moving detail, near-zero cost, and the page stops looking like a template.
Landing and product pages. In the footer or a corner. It does not compete with the content, but it makes the page feel alive.
Two things it cannot do, worth knowing before you start. It is not an alarm: nothing rings at a set time, and a countdown does not fire anything when it reaches zero — it simply stops. And one snippet shows one time zone — a wall of Tokyo, London and New York means three iframes side by side, not one clock with three faces.
IV. Match your site's colours
By default it has no background — it is transparent. So it sits on your page as if it grew there, with no white slab or black hole.
But transparent also means it does not know what colour your page is. On a light page the light theme fits; on a dark page you have to tell it.
The theme is not only a matter of taste. In the dark theme the two colons between the digits sit outside the cards and take the digit colour at 45% opacity — put that on a white page and they vanish, so the clock looks broken rather than dark. Dark theme for dark pages, light theme for light pages. Every sample in this article sits on a dark panel for exactly that reason: the panel belongs to the article, the clock itself is still transparent.
Two ways.
One: a theme. Pick "dark" or "light" in the builder. Two sets of colours, one click to switch.
Two: your own colours. Four parameters:
bg— the panel behind everything, transparent by defaultcard— the flip card colourink— the digit colourcolon— the two dots between the digits, which follow the digit colour unless you set them
The cards are amber now. The dark panel behind them belongs to this article, not to the clock — the clock has no background of its own.
The builder has colour pickers, so you can click rather than remember parameter names.
Font and weight. The digits use a small seven-segment face by default — 900 bytes, the only file the widget fetches. If it does not match your site's type, switch Font to System. Bold is off by default: a seven-segment face has only one weight, so the browser fakes the bold, and at 320 px wide the gaps between segments start to close up.
V. Time and content
Time zone. By default it shows whatever time the visitor's computer says. To pin it to a city, use the city name: Asia/Tokyo, Europe/London, America/New_York. Daylight saving follows automatically — you do not have to touch it twice a year.
12 or 24 hour. Change one number: format=12 or format=24.
Seconds. If the ticking digits are too busy, turn them off.
Date and city label. Plain digits only: add a line with the date, or a city label such as "TOKYO".
Click-through. The whole clock is a link: a click opens Clockhub in a new tab. There is no separate credit line underneath it.
All of these are switches in the builder. Tick them and the code updates itself — no hand-editing.
VI. Will it slow my site down?

An ordinary photo on a web page is around 200 KB. This clock is under 5 KB.
No.
It is under 5 KB compressed, in a single request. For comparison, an ordinary photo on a web page is about 200 KB — this clock is under a fortieth of that.
It loads no React and no icon library. The only font it fetches is a 900-byte seven-segment face for the digits; the title and date use whatever the visitor's device already has (PingFang, Microsoft YaHei, Helvetica).
And it is lazy by default: if a visitor never scrolls to it, it never loads.
The only extra request is the analytics script, which tells us how many sites use this. It waits until the page is idle before starting, so it does not compete with your content. It stays silent in local previews.
VII. Questions people ask
Does it cost anything? Do I need an account?
No. No account, no watermark, no "upgrade to pro".
Are there ads?
No ads in the clock, and no pop-ups. The ClockHub site is ad-supported, but the embedded clock carries none.
Will it break on mobile?
No. It scales to whatever box you give it, filling portrait and landscape without cropping.
Nothing renders and the console mentions CSP
Open the console (F12 → Console). If you see something like:
Framing 'https://clockhub.app/' violates the following Content Security Policy
directive: "frame-src 'self' ..." The request has been blocked.
your site has a Content Security Policy and clockhub.app is not on the frame-src list. Your own security setting is blocking it — the clock is not broken.
The fix is to add https://clockhub.app to frame-src.
If your site only sets default-src and has no frame-src, add one — browsers prefer it:
Content-Security-Policy: frame-src 'self' https://clockhub.app;
Where to change it depends on how your site sends the header: an nginx or Apache config, a Cloudflare Transform Rule, or a security plugin such as Wordfence or Sucuri.
Two things that trip people up: don't use child-src, it is deprecated and modern browsers ignore it; and clear your cache afterwards, because CDNs cache the CSP header.
If you cannot touch the CSP, use the platform's own custom HTML / Embed block — those usually run in a separate sandbox and are not affected.
For what it is worth, ClockHub sets no CSP and no X-Frame-Options, so we never block the embed from our side. The only policy that can stop it is yours.
Can I put more than one on a page?
As many as you like, each on a different time zone. A team page with Tokyo, London and New York side by side is a normal use.
My site runs on something else — will it work?
If the platform can accept HTML or an iframe, yes. The table above covers the common ones. If it only accepts a URL (Notion, for example), paste just the address rather than the whole snippet.
The time is wrong for my visitors
Check the time zone parameter. Left out, it shows the visitor's local time; set, it is pinned to that city wherever the visitor is.
Does it hurt SEO?
No. Content inside an iframe does not count as content on your page — which also means you should not expect it to add "time"-related keywords for you. It does not slow the page either: under 5 KB, lazy-loaded.
Can I use it commercially?
Yes. Personal and commercial sites both, no application, no attribution required.
The snippet carries no extra credit line to keep or delete — the clock itself is the link.
VIII. Go get your code
The clocks above are real, not screenshots. They run the same file you are about to get, character for character.
Head to the embed builder: pick a style, a time zone, adjust the colours, and the code writes itself. Copy, paste, done. Under a minute.
If you want more than the time — a settings drawer, typefaces, lunar calendar, full screen — that is the Flip Clock on the main site. It is more complete, but it cannot move into someone else's page.
The embedded one does a single thing: it sits quietly in a corner of your page and keeps time — flipping, or standing still, depending on the style you picked.