Update Ready Toast
A sky-blue app-update toast with a pinging status dot and a restart button that brightens and swells on hover.
- lines of CSS
- 64lines 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-v12-al-update-15180 {
display: flex;
align-items: center;
gap: 0.65rem;
width: 230px;
padding: 0.6rem 0.6rem 0.6rem 0.85rem;
background: #0c1a2b;
color: #e0f2fe;
border: 1px solid #0ea5e9;
border-radius: 0.6rem;
font-family: system-ui, sans-serif;
box-shadow: 0 6px 20px rgba(14,165,233,0.2);
transition: box-shadow 0.3s ease;
}
.fx-v12-al-update-15180 .dot {
position: relative;
width: 10px; height: 10px;
flex-shrink: 0;
border-radius: 50%;
background: #0ea5e9;
}
.fx-v12-al-update-15180 .dot::after {
content: '';
position: absolute;
inset: -3px;
border-radius: 50%;
border: 2px solid #0ea5e9;
animation: fx-v12-al-update-15180-ping 1.6s ease-out infinite;
}
@keyframes fx-v12-al-update-15180-ping {
0% { transform: scale(0.6); opacity: 1; }
100% { transform: scale(2.2); opacity: 0; }
}
.fx-v12-al-update-15180 > div { flex: 1; }
.fx-v12-al-update-15180 b { display: block; font-size: 0.8rem; }
.fx-v12-al-update-15180 span { display: block; font-size: 0.65rem; color: #7dd3fc; }
.fx-v12-al-update-15180 button {
padding: 0.35rem 0.7rem;
font-size: 0.7rem;
font-weight: 600;
color: #082f49;
background: #38bdf8;
border: none;
border-radius: 0.4rem;
cursor: pointer;
transition: background 0.25s ease, transform 0.25s ease;
}
.fx-v12-al-update-15180:hover { box-shadow: 0 10px 28px rgba(14,165,233,0.35); }
.fx-v12-al-update-15180:hover button { background: #7dd3fc; transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
.fx-v12-al-update-15180,
.fx-v12-al-update-15180::before,
.fx-v12-al-update-15180::after,
.fx-v12-al-update-15180 *,
.fx-v12-al-update-15180 *::before,
.fx-v12-al-update-15180 *::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-v12-al-update-15180">
<i class="dot"></i>
<div>
<b>Update ready</b>
<span>v2.4.0 downloaded</span>
</div>
<button>Restart</button>
</div>What do I do with this?
- Put
update-ready-toast-15181.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-v12-al-update-15180">. 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 update-ready-toast-15181What'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 update-ready-toast-15181
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
- Repaints
Animates
background,box-shadow. No reflow, but the browser repaints every frame, which is fine for one element and costly across many. - Flashing (WCAG 2.3.1)
- Under 3 flashes/s
Its brightest loop is about 0.6 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
30 more effects in Alerts & Toasts
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 Alerts & ToastsShipping 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 Update Ready Toast
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.