Ocean Toast Stack
Three toasts collapsed into a depth stack with the newest in front — the sonner-style notification pile, in ocean.
- lines of CSS
- 49lines of CSS
- dependencies
- 0dependencies
- browser, for years
- Everybrowser, for years
- motion only on interaction
- Hovermotion only on interaction
Build succeeded
Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.
.fx-mal-stack-ocean-6326 {
position: relative;
width: 225px;
height: 78px;
}
.fx-mal-stack-ocean-6326 .t {
position: absolute;
left: 0;
right: 0;
border-radius: 0.6rem;
background: rgba(15,23,42,0.94);
border: 1px solid rgba(255,255,255,0.1);
box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}
.fx-mal-stack-ocean-6326 .t1 {
display: flex;
align-items: center;
gap: 0.55rem;
bottom: 0;
padding: 0.65rem 0.8rem;
z-index: 3;
animation: fx-mal-stack-ocean-6326-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.fx-mal-stack-ocean-6326 .t2 {
bottom: 9px;
height: 34px;
transform: scale(0.94);
opacity: 0.7;
z-index: 2;
}
.fx-mal-stack-ocean-6326 .t3 {
bottom: 17px;
height: 34px;
transform: scale(0.88);
opacity: 0.4;
z-index: 1;
}
.fx-mal-stack-ocean-6326 i {
flex: none;
width: 8px;
height: 8px;
border-radius: 50%;
background: linear-gradient(140deg, #0ea5e9, #6366f1);
box-shadow: 0 0 9px rgba(14,165,233, 0.9);
}
.fx-mal-stack-ocean-6326 p { margin: 0; font-size: 0.82rem; font-weight: 600; color: #e2e8f0; }
@keyframes fx-mal-stack-ocean-6326-in {
from { opacity: 0; transform: translateY(14px); }
}<div class="fx-mal-stack-ocean-6326">
<div class="t t3"></div>
<div class="t t2"></div>
<div class="t t1">
<i></i>
<p>Build succeeded</p>
</div>
</div>What do I do with this?
- Put
ocean-toast-stack-6327.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-mal-stack-ocean-6326">. 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 ocean-toast-stack-6327What'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 ocean-toast-stack-6327
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
- Brief motion, no guard
Animates briefly or on interaction. Only looping motion gets a guard in this catalog; copy the one from the Insights tab if this ships on a critical path.
- 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)
- No flashing found
No repeating change in opacity, colour or brightness large enough to count as a flash.
- 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 Ocean Toast Stack
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.