What Is Glassmorphism?
Glassmorphism is a UI design trend that creates a frosted glass appearance using semi-transparent backgrounds, backdrop blur, and subtle borders. Popularized by Apple's macOS Big Sur (2020), it creates depth by allowing blurred background content to show through elements.
Glassmorphism CSS Recipe
- Background transparency:
background: rgba(255, 255, 255, 0.15); - Backdrop blur:
backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); - Subtle border:
border: 1px solid rgba(255, 255, 255, 0.2); - Box shadow:
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); - Requires a colorful or image background behind the element for the blur to be visible
Performance Considerations
- backdrop-filter triggers GPU compositing — avoid on many simultaneously animated elements
- Safari requires -webkit- prefix: -webkit-backdrop-filter
- Add a fallback solid background for browsers without support
Why doesn't my glassmorphism effect look blurry?
backdrop-filter only blurs what's behind the element — there must be visible, colorful content behind it. If the element is on a plain white or dark background, the blur is invisible. Ensure the element sits over an image, gradient, or other colorful elements. Also check -webkit-backdrop-filter is set for Safari.
Is glassmorphism still a current design trend?
Glassmorphism peaked in 2021 but remains relevant for dashboard UIs, SaaS interfaces, and mobile apps. The trend has matured from "every card is glass" toward selective use — applying the effect to modals, sidebars, and hero components where depth benefits the UI. Heavy use across all elements creates visual noise; use it purposefully.