Skip to content

Apple Liquid Glass

Premium frosted glass button inspired by Apple design language with dynamic blur and spring physics

Apple Liquid Glass

by FreeCsStyles Dev's

Modern PresetsPremium
🌐🎨⚛️💚🅰️🔥☁️
#apple#glass#premium#frosted#blur#spring

Embed this component

Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/apple-liquid-glass.

<iframe src="/embed/apple-liquid-glass" sandbox="allow-scripts" loading="lazy" title="Apple Liquid Glass" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Apple Liquid Glass, or grab a framework-specific implementation. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.

HTML
<button class="apple-glass-button">Apple Glass</button>
CSS
.apple-glass-button {
  position: relative;
  padding: 1rem 2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.apple-glass-button:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 20px rgba(168, 85, 247, 0.2);
}

.apple-glass-button:active {
  transform: scale(0.97);
}

.apple-glass-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: glass-shine 3s linear infinite;
}

@keyframes glass-shine {
  0% { left: -100%; }
  100% { left: 100%; }
}
Tailwind CSS
<button class="relative px-8 py-4 rounded-2xl bg-white/10 backdrop-blur-3xl border border-white/15 text-white font-semibold shadow-[0_8px_32px_rgba(0,0,0,0.3),inset_0_1px_0_rgba(255,255,255,0.1)] hover:bg-white/15 hover:scale-[1.03] hover:shadow-[0_12px_40px_rgba(0,0,0,0.4),inset_0_1px_0_rgba(255,255,255,0.15),0_0_20px_rgba(168,85,247,0.2)] transition-all duration-300">
  Apple Glass
</button>
LWC — HTML template
<template>
  <button class="apple-glass-button" onclick={handleClick}>
    <slot>Apple Glass</slot>
  </button>
</template>
LWC — JavaScript
import { LightningElement, api } from 'lwc';

export default class AppleGlassButton extends LightningElement {
  @api label = 'Apple Glass';
  
  handleClick() {
    this.dispatchEvent(new CustomEvent('buttonclick', {
      bubbles: true,
      composed: true
    }));
  }
}
LWC — CSS
.apple-glass-button {
  position: relative;
  padding: 1rem 2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.apple-glass-button:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 20px rgba(168, 85, 247, 0.2);
}

.apple-glass-button:active {
  transform: scale(0.97);
}
LWC — Configuration
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
  <apiVersion>59.0</apiVersion>
  <isExposed>true</isExposed>
  <targets>
    <target>lightning__AppPage</target>
    <target>lightning__RecordPage</target>
    <target>lightning__HomePage</target>
  </targets>
</LightningComponentBundle>

Where Apple Liquid Glass fits

  • Premium Apps
  • AI Assistants
  • macOS/iOS Interfaces
  • Portfolio Websites

Interaction states & animations

  • Spring
  • Glass
  • Hover

Topics

  • #apple
  • #glass
  • #premium
  • #frosted
  • #blur
  • #spring

Accessibility notes

Ensure sufficient contrast ratio (4.5:1 minimum) for text on glass backgrounds.

Browser support

  • Chrome 76+
  • Firefox 103+
  • Safari 9+
  • Edge 79+