CSS Glassmorphism · 2025

50 CSS Glassmorphism Examples
& Code Snippets

Every example below has a live CSS preview and one-click copy. From basic frosted white to dark glass, color tints, UI components and advanced layered effects — all ready to paste into your project.

Examples: 50 Updated: July 2025 Output: CSS + Tailwind Browser support: Chrome · Firefox · Safari · Edge

Free CSS Glassmorphism Generator

Adjust blur, opacity, saturation, border and radius with live sliders — copy CSS, HTML or Tailwind in one click.

Open Generator →

Glassmorphism uses backdrop-filter: blur() combined with a semi-transparent background to create a frosted glass effect. The result simulates real glass — the blurred content behind the element bleeds through, creating depth without blocking information.

The Four CSS Properties That Create the Effect

Every glassmorphism example on this page is built from the same four CSS declarations, with different values per effect:

backdrop-filter: blur(10px) saturate(100%) — the blur intensity. Higher values = more frosted.
background: rgba(255, 255, 255, 0.10) — the glass tint. The alpha value controls transparency.
border: 1px solid rgba(255, 255, 255, 0.18) — the glass edge highlight.
box-shadow: 0 8px 32px rgba(0,0,0,0.20) — depth and elevation.

Important: always include -webkit-backdrop-filter alongside backdrop-filter for Safari and iOS support.

Examples 01–10

Basic Glassmorphism

Foundational glass effects — varying blur strength, opacity, and corner radius.

Examples 11–20

Color-Tinted Glass

Add personality by tinting the glass with your brand color.

Examples 21–30

Glass UI Components

Glassmorphism applied to specific interface elements — buttons, inputs, navbars, modals.

Examples 31–40

Dark Glass Variations

Dark-tinted glass for moody, cinematic, and night-mode interfaces.

Examples 41–50

Advanced Glass Techniques

Gradient borders, animated glows, layered depth effects and Tailwind equivalents.

Browser Support

Always include both the standard and -webkit- prefixed declarations. All examples on this page do this automatically.

Browserbackdrop-filter-webkit-backdrop-filterMin version
Chrome✓ Full76+
Firefox✓ FullNot needed103+
Safari / iOS-webkit- only✓ Required9+
Edge (Chromium)✓ Full79+
Opera✓ Full63+

Frequently Asked Questions

What is CSS glassmorphism?
Glassmorphism is a UI design style that uses backdrop-filter: blur() combined with a semi-transparent background to simulate frosted glass. It requires colourful content behind the element to be visible — a plain white or black background makes the effect invisible.
Why is my glassmorphism effect not showing?
The most common cause: you are using the glass effect on a plain dark or white background. backdrop-filter blurs whatever is behind the element, so you need a vivid gradient or image behind it. Add a colourful gradient as the parent background and the effect will be immediately visible.
Which browsers support backdrop-filter?
Chrome 76+, Firefox 103+, Safari 9+ (requires -webkit- prefix), Edge 79+, and Opera 63+. Global support is around 95% as of 2025. Always include both the standard and webkit prefixed declarations for maximum compatibility.
How do I use glassmorphism in Tailwind CSS?
Tailwind 3+ includes backdrop-filter utilities: backdrop-blur-md (blur 12px), backdrop-blur-xl (blur 24px), and bg-white/10 (10% white opacity). For precise values, use arbitrary syntax: backdrop-blur-[12px]. The Safari webkit prefix is handled automatically by Tailwind's PostCSS autoprefixer.
Does glassmorphism hurt performance?
backdrop-filter is GPU-accelerated in modern browsers and performs well for static or moderately animated elements. Avoid applying it to dozens of elements simultaneously or animating the blur value — these scenarios can cause frame drops on lower-end devices. For high-performance UIs, limit glass elements to hero sections, modals, and navbars.
What blur value should I use?
4–8px for a subtle shimmer, 10–16px for the classic frosted glass look, 20–40px for a heavily blurred effect. The right value depends on what content is behind the element — detailed imagery needs higher blur to avoid distraction, while a gradient background works well with lower values.