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 Select
Gooey Image RevealBrowse all 182Gooey Stacked Toasts
  • 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 Select

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

  • Form
  • Gooey
  • SVG

Features.

  • The option panel pours out of the pill on an elastic spring, joined to it by a stretching goo neck
  • The goo clears once the shapes separate, so both rest with crisp edges
  • Closing sucks the panel back into the pill on a calm curve, with no undershoot
  • Option labels fade in one after another; a soft highlight glides between them
  • Picking rolls the old value up out of the pill as the new one rolls in, and the caret turns
  • A full select-only combobox: arrows wrap, Home and End jump, Enter or Space pick, Escape and Tab close
  • Focus never leaves the trigger; aria-activedescendant follows the highlight
  • Fires a bubbling change event with the picked index, value and label
  • Optional note under the select that follows the picked option
  • Respects prefers-reduced-motion: everything runs 20× faster
  • GSAP and CustomEase; the script builds its own SVG filter

How to get it right.

Leave room below

The panel opens downward and sits over whatever is beneath it. Give it about 16em of space below the pill, and don't put it inside a parent with overflow: hidden.

Keep the options short

Each option is one line at a fixed height. Short labels (one or two words) keep the panel compact; five to eight options is the comfortable range.

Keep it on a plain background

The goo is a blur-and-threshold filter on --gsl-ink. On a flat background the neck looks like liquid.

Adding a note

It ships without one. Add data-gsl-note-text to each option and a <p class="gsl_note" data-gsl-note> after .gsl_stack (or a note on each option in React), and each choice gets a sentence of detail.

Variations.

  • Plain select: the default
  • Pick and explain: add the note above, and it follows the choice
  • No goo — data-au-goo="0": the panel still springs out of the pill, without the neck
  • Slow pour — data-au-duration="1.2"
  • Your colours — override --gsl-ink, --gsl-fg, --gsl-option, --gsl-glow, --gsl-note and --gsl-focus

Where it fits.

  • Product options — size, roast, finish
  • Filters and sorting — "Sort by" above a list
  • Settings — a single preference that deserves a little delight
  • Calculators — pick an input and show the result in the note

Frequently asked.

Listen for change on the root: event.detail has index, value (the option's data-gsl-value, or its label) and label. The picked option also carries aria-selected="true".

It isn't a native <select>, so it doesn't submit by itself. Add a hidden input and set it from the change event.

No. It always pours downward, so place it where there's room below.

Yes. Each [data-au-gooey-select] is its own instance with its own filter and ids.

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

Related components.

Pro

Image Slide Tabs

Click

Pro

Glow Band Sheet Modal

Click

Pro

Expanding Card Modal

Click