Hourglass Timer Icon
A framed hourglass whose upper chamber empties through a thin stream into the heap below, and once the sand has run through the whole frame turns over to start again.
- lines of CSS
- 88lines of CSS
- dependencies
- 0dependencies
- browser, for years
- Everybrowser, for years
- stops under reduced motion
- Guardedstops under reduced motion
Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.
.fx-v14-ic-hourglass-15790 {
position: relative;
width: 60px;
height: 86px;
animation: fx-v14-ic-hourglass-15790-flip 6s ease-in-out infinite;
}
.fx-v14-ic-hourglass-15790 .gl {
position: absolute;
left: 10px;
top: 9px;
width: 40px;
height: 68px;
background: rgba(148,163,184,0.24);
-webkit-clip-path: polygon(0 0, 100% 0, 55% 50%, 100% 100%, 0 100%, 45% 50%);
clip-path: polygon(0 0, 100% 0, 55% 50%, 100% 100%, 0 100%, 45% 50%);
}
.fx-v14-ic-hourglass-15790 .s1,
.fx-v14-ic-hourglass-15790 .s2 {
position: absolute;
left: 0;
right: 0;
height: 34px;
background: linear-gradient(180deg, #fcd34d, #f59e0b);
}
.fx-v14-ic-hourglass-15790 .s1 { top: 0; transform-origin: 50% 100%; animation: fx-v14-ic-hourglass-15790-drain 6s linear infinite; }
.fx-v14-ic-hourglass-15790 .s2 { bottom: 0; transform-origin: 50% 100%; animation: fx-v14-ic-hourglass-15790-heap 6s linear infinite; }
.fx-v14-ic-hourglass-15790 .fl {
position: absolute;
left: 50%;
top: 30px;
width: 2px;
height: 30px;
margin-left: -1px;
background: #fcd34d;
animation: fx-v14-ic-hourglass-15790-pour 6s linear infinite;
}
.fx-v14-ic-hourglass-15790 .cp {
position: absolute;
left: 0;
width: 60px;
height: 8px;
border-radius: 4px;
background: linear-gradient(180deg, #cbd5e1, #64748b);
}
.fx-v14-ic-hourglass-15790 .cp.t { top: 0; }
.fx-v14-ic-hourglass-15790 .cp.b { bottom: 0; }
.fx-v14-ic-hourglass-15790 .po {
position: absolute;
top: 6px;
width: 4px;
height: 74px;
border-radius: 2px;
background: linear-gradient(90deg, #94a3b8, #475569);
}
.fx-v14-ic-hourglass-15790 .po.l { left: 3px; }
.fx-v14-ic-hourglass-15790 .po.r { right: 3px; }
@keyframes fx-v14-ic-hourglass-15790-drain {
0% { transform: scaleY(1); }
80%, 100% { transform: scaleY(0); }
}
@keyframes fx-v14-ic-hourglass-15790-heap {
0% { transform: scaleY(0); }
80%, 100% { transform: scaleY(1); }
}
@keyframes fx-v14-ic-hourglass-15790-pour {
0%, 3% { opacity: 0; }
8%, 74% { opacity: 1; }
80%, 100% { opacity: 0; }
}
@keyframes fx-v14-ic-hourglass-15790-flip {
0%, 86% { transform: rotate(0deg); }
100% { transform: rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) {
.fx-v14-ic-hourglass-15790,
.fx-v14-ic-hourglass-15790::before,
.fx-v14-ic-hourglass-15790::after,
.fx-v14-ic-hourglass-15790 *,
.fx-v14-ic-hourglass-15790 *::before,
.fx-v14-ic-hourglass-15790 *::after {
animation-duration: 1ms !important;
animation-iteration-count: 1 !important;
animation-delay: 0ms !important;
transition-duration: 1ms !important;
transition-delay: 0ms !important;
}
}<div class="fx-v14-ic-hourglass-15790">
<i class="gl">
<b class="s1"></b>
<b class="fl"></b>
<b class="s2"></b>
</i>
<i class="cp t"></i>
<i class="cp b"></i>
<i class="po l"></i>
<i class="po r"></i>
</div>What do I do with this?
- Put
hourglass-timer-icon-15791.cssanywhere your page already loads CSS from — in Next.js that isapp/globals.css, or any stylesheet with a<link>in your HTML. - Then put the class on the element you want it on:
<button class="fx-v14-ic-hourglass-15790">. The CSS does nothing until a class name in it matches something on the page.
- Link the stylesheet, then paste the markup wherever you need it.
npx hoverlab add hourglass-timer-icon-15791What's included
- The markup and the stylesheet, in whichever framework you pick
- No runtime dependencies
Works with
- React
- Vue
- Svelte
- Tailwind
- styled-components
- Plain CSS
npx hoverlab add hourglass-timer-icon-15791
Or over MCP, from your editor's agent — no account needed.
License
Free to read, copy and install, for personal and non-commercial projects. Shipping it in client work or a paid product needs Pro ($79 once). The source lands in your repo and stops being ours — no attribution, nothing to upgrade.
Motion safety
Static estimate, read from the CSS
- Reduced motion
- Guarded
Ships a
prefers-reduced-motionblock, so the loop settles into its end state for visitors who ask for less motion. - What it animates
- Compositor only
Only
transform,opacityorfilter: the GPU can run it without re-laying-out or repainting the page. - Flashing (WCAG 2.3.1)
- Under 3 flashes/s
Its brightest loop is about 0.2 a second. Estimated from duration, iterations and keyframes, not from rendered frames.
- Layout shift (CLS)
- No shift expected
Nothing it animates moves or resizes the box in flow. A category from the CSS, not a measurement for this effect.
Every row is read from the shipped CSS. Only a figure marked measured came from a browser. Customizing the speed changes the timing, so recheck a customized copy. How it is computed
16 more effects in Dates & Time
All of them free to read, copy and install — no account, no locked tiles, no watermarked preview. The whole catalog is open, and so are the API and the CLI.
Browse Dates & TimeShipping one commercially
Copying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.
- A commercial licence for everything in the catalog
- Unlimited bundle exports, in Vue, Svelte and Tailwind
- One payment — no subscription, nothing to renew
7 variations of Hourglass Timer Icon
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.