Platform
VaultVault
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
ButtonsPart of ProButtons
IconsPart of ProIcons
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
SavedPart of ProSaved
Support
DocumentationDocumentation
MCP serverMCP server
SettingsSettings
VaultUI componentsGooey Stacked Toasts
Gooey SelectBrowse all 1823D Spiral Gallery
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
Sign inSign in

Start free. The code for 15 components, no card needed.

Get 15 free

Gooey Stacked Toasts

This one is locked. Become a member to open the code for it and the rest of the Vault.

See plansTry the 15 free ones

What you'll need.

Install

  • gsap
  • CustomEase

Setup

npm i gsapregisterPlugin(CustomEase)

More like this

  • Toast
  • Gooey
  • SVG

Features.

  • New toasts slide in from the screen edge while the stack settles in behind, smaller and peeking out
  • Hover or focus fans the stack into a column, with liquid necks stretching and snapping between the cards
  • Closing slides a toast back out (or shrinks it into the edge) while its neighbour holds on through the goo
  • Three types (default, success, error), each with its own icon and colour
  • A countdown line closes each toast after 5s, paused while the stack is hovered, focused or dragged
  • Swipe a toast toward the screen edge to throw it away; a short drag springs back
  • Escape closes the front toast; close buttons keep focus in the stack
  • Five positions: the four corners and bottom centre
  • Triggers in plain HTML (data-gto-trigger) or from script (window.au.GooeyToasts.push)
  • Respects prefers-reduced-motion: short fades, no goo, no travel
  • GSAP and CustomEase; the script builds the cards and its own SVG filter

How to get it right.

One stack per page

Put the root once, near the end of <body> (or in your root layout). Every trigger and push() call goes to it.

Keep the copy short

A title of a few words and one line of text. Toasts are read in passing; anything longer belongs in the page.

Pick the type by meaning

success for things that worked, error for things that didn't, default for everything else. The colour is the only difference, so don't lean on it alone: say it in the title too.

Mind the timeout

5s suits a short title. If people need to act on a toast, set data-au-timeout="0" so it waits to be closed.

Variations.

  • Corner stack — the default: bottom right, sliding out on close
  • Top of the screen — data-au-position="top-right" or "top-left": the stack hangs down
  • Centred — data-au-position="bottom-center": swipes throw either way
  • Shrink — data-au-exit="shrink": closed toasts sink into the edge
  • Sticky — data-au-timeout="0": toasts stay until closed
  • No goo — data-au-goo="0"
  • Your colours — override --gto-card, --gto-fg, --gto-muted and the three type colours on the root

Where it fits.

  • App feedback — saved, sent, copied, failed
  • Background jobs — an export finished, an upload failed
  • Forms — confirmation after a submit, without leaving the page
  • Live updates — a new message, a status change

Frequently asked.

window.au.GooeyToasts.push({ type: "success", title: "Saved", text: "All changes are stored." }). Pass a root element as the second argument to target a specific stack.

Yes. Give any button data-gto-trigger plus data-gto-type, data-gto-title and data-gto-text. Add data-gto-for="<stack id>" when there's more than one stack.

The root is a polite role="status" live region, so new toasts are read out as they arrive.

The script builds each card from a title and text, as plain text. For richer content, edit createToast in the script.

Set font-size on the root. Everything is in em, and the goo and gaps scale with it.

Related components.

Pro

Image Slide Tabs

Click

Pro

Glow Band Sheet Modal

Click

Pro

Expanding Card Modal

Click