What makes Glass tabs work
- Category
- Media
- Added
- Nov 8, 2026
- Good for
- Showing a few services, rooms, treatments or ranges, one at a time, on any site with good photos
- Built with
- HTML, CSS and JavaScript, no libraries.
- 01Everything is adjustable: card size and roundness, switch height and roundness, glass bend and frost, spring speed and bounce, photo fade, your heading and tab labels.
- 02A wide photo with a glass switch and a glass caption card on it. The glass bends the photo at its edges like a thick pane, with a faint colour fringe, a thin rim of light that turns toward your pointer, and a soft shadow.
- 03Choose an option and the selection flows there: its leading end reaches first and the trailing end catches up, so it stretches as it goes and thins a little to keep its volume. The label under it brightens and magnifies, because the selection is a lens.
- 04The photo crossfades and the caption rolls to the new title, line and button. Drag the selection along the switch and throw it; it lands on the nearest option.
- 05Text on the glass picks light or dark from the photo under it, and the glass darkens or lightens until the words read, judged by the darkest and brightest patches rather than the average. Clear or smoke glass; text can be fixed light or dark.
- 06A radiogroup: arrow keys, Home and End move the selection, and screen readers hear the new caption. On phones the switch spans the foot of a taller photo. Reduced motion slides without stretching. Without WebGL the glass is a CSS frost with the same tints.
- 07Reads your services list (each service's short label, name, line, photo and button). The first of the glass family, with Glass dock and Glass morph.
Use this element
Copy it into your website builder. It keeps the exact design and behavior, and your site's styles can't change it.
A short snippet that loads the element from finerui.com, signed with your embed key. Fixes and updates made here show up everywhere it's used.
Paste it into an HTML or embed block:
- Wix: Add, then Embed code, then Embed HTML
- Squarespace: a Code block
- Webflow: an Embed element
- WordPress: a Custom HTML block
- GoHighLevel: a Custom JS/HTML element
It sizes its own height and has a clear background, so it sits on your page like it belongs there.
The code is for premium members
Premium members copy Glass tabs and every other element as an embed, a full file or a Lovable prompt. From $12.42 a month.