All styles
Glassmorphism

Liquid Glass Depth CSS Button

Free45 lines · no JS · WCAG fails 1.0
Open in Studio
Theme

A real <button> carrying .btn-liquid-glass-depth — the preview is the stylesheet, not a picture of it.

States
default
hover
focus-visible
active
disabled
not declared
.btn-liquid-glass-depth {
  position: relative;
  display: inline-block;
  padding: 14px 34px;
  border: none;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(20px) saturate(190%) brightness(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(190%) brightness(1.05);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.5), inset 0 -12px 22px -14px rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 22px 44px -14px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.3s ease;
}
.btn-liquid-glass-depth::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 255, 255, 0.28), transparent 70%);
  filter: blur(4px);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.btn-liquid-glass-depth:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6), inset 0 -12px 22px -14px rgba(255, 255, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 30px 54px -16px rgba(0, 0, 0, 0.6), 0 6px 16px rgba(0, 0, 0, 0.3);
}
.btn-liquid-glass-depth:hover::after {
  opacity: 1;
}
.btn-liquid-glass-depth:active {
  transform: translateY(0) scale(0.97);
}
.btn-liquid-glass-depth:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
Self-contained · MIT · no build step.btn-liquid-glass-depth
GlassmorphismRoundedLiquid

Implementation notes

About the Liquid Glass Depth CSS button

Liquid Glass Depth uses a translucent surface designed to work over rich backgrounds. Its rounded corners balance product-friendly softness with a clear boundary. It combines a five-layer shadow and a 300ms hover lift. The liquid details are included in the copy-paste CSS.

Usage

<button class="btn-liquid-glass-depth">Button</button>

Pair it with the CSS tab above — the class is self-contained.

Before shipping: keep the semantic button element, verify contrast on your actual background and add a visible:focus-visible state. If you retain motion, include a prefers-reduced-motion override.
Built with
HTML + plain CSS
Shape
Rounded
Exports
CSS, Tailwind, React
License
MIT · commercial use
Complete the look

Build the interface around this button

We matched its palette, surface, geometry and motion to a complete UI system — like composing an outfit, not browsing unrelated parts.

Style DNA · v1
How matching works →
Pro preview
Modal89% match

Glass Orbit Decision Modal

Glass Orbit kit

Glassmorphism characterglass surface
Unlock with Pro →
Free sample
Input89% match

Glass Orbit Smart Input

Glass Orbit kit

Glassmorphism characterglass surface
Pro preview
Toggle89% match

Glass Orbit Preference Toggle

Glass Orbit kit

Glassmorphism characterglass surface
Unlock with Pro →
Pro preview
Card89% match

Glass Orbit Feature Card

Glass Orbit kit

Glassmorphism characterglass surface
Unlock with Pro →
Pro preview
Dropdown89% match

Glass Orbit Action Menu

Glass Orbit kit

Glassmorphism characterglass surface
Unlock with Pro →
Pro preview
Form89% match

Glass Orbit Signup Form

Glass Orbit kit

Glassmorphism characterglass surface
Unlock with Pro →
Get the complete Glass Orbit kit
Six coordinated component types, commercial license and future kit updates.
Explore Pro · $39

More styles that match

Liquid Glass Morph

Glass Shimmer

Liquid Glass Lens

Liquid Glass Pill

Liquid Glass Sheen

Glass Deep

Two optional extras load only if you allow them. Every button, preview and line of code works exactly the same either way. What each one does