In short
- Glassmorphism is a style in which panels look like frosted glass: translucent, with whatever is behind them blurred.
- The effect is made with the CSS
backdrop-filterproperty, a semi-transparent background and a fine light border. - It needs something colourful behind it. Glass over a flat background is just a grey box.
- The risk is readability. Text on a translucent panel changes contrast with whatever scrolls behind it.
- Use it for a few floating elements, such as a header, a card or a dialog, not for a whole page.
Glassmorphism is the name given to interface elements that look like panes of frosted glass. You can see colour and movement through them, softened into a blur, with a faint bright edge where the glass catches the light. Apple and Microsoft both built the look into their operating systems, and Apple's Liquid Glass design language, introduced in 2025, pushed it further, with panels that bend and refract what lies beneath.
On websites the style appears in navigation bars, cards, pricing panels and dialogs. It can look refined. It can also make text hard to read and pages slow, so it is worth knowing how it works before reaching for it.
What Is Glassmorphism?
The style has four ingredients, and it needs all of them.
- Translucency. The panel's background is partly transparent, so the content behind shows through.
- Background blur. Whatever is behind the panel is blurred, which is what makes it look frosted and not merely see-through.
- A subtle border. A thin, light edge suggests the thickness of the glass.
- A layered setting. There has to be something worth seeing behind it: a gradient, a photograph or coloured shapes.
It is one of a family of styles named in the same way. Skeuomorphism imitated real materials in detail, flat design removed them, and neumorphism tried soft, embossed shapes that proved hard to read. Glassmorphism has lasted better than neumorphism because it keeps a clear sense of layers: this thing floats above that thing.
How to Create the Effect in CSS
The work is done by backdrop-filter, which applies a filter to whatever lies behind an element, as opposed to filter, which affects the element itself.
.glass {
background: rgb(255 255 255 / 0.12);
backdrop-filter: blur(16px) saturate(140%);
-webkit-backdrop-filter: blur(16px) saturate(140%);
border: 1px solid rgb(255 255 255 / 0.25);
border-radius: 1.25rem;
box-shadow: 0 8px 32px rgb(0 0 0 / 0.2);
}backdrop-filter line, which is what turns a see-through panel into frosted glass. On a device set to reduce transparency, one solid panel takes their place.The property is supported in every current browser, and the prefixed line is kept for older versions of Safari. Three values are worth experimenting with: the opacity of the background, which controls how much tint the glass has, the blur radius, and the saturation, which stops the colours behind from looking washed out.
.glass {
background: rgb(20 24 31 / 0.92);
}
@supports (backdrop-filter: blur(1px)) or
(-webkit-backdrop-filter: blur(1px)) {
.glass {
background: rgb(20 24 31 / 0.55);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
}
}Where Glassmorphism Works
| Works well | Works badly |
|---|---|
| A sticky header over a scrolling page | Long passages of body text |
| A card or price panel floating over a gradient or photograph | Panels on a plain white or flat background |
| Dialogs, menus and notifications that sit above the page | Every section of a page at once |
| A hero panel holding a headline and a button | Dense tables and forms |
| Media controls over video or imagery | Small text and fine icons |
The effect depends on contrast between layers. A translucent header is at its best when colourful content passes beneath it as you scroll. The same header over a white page shows nothing, because there is nothing to blur. If you are adding the style to an existing site, treat it as part of a wider refresh, which our website redesign guide explains how to plan.
Keeping Text Readable
This is the central difficulty. On a solid panel, you choose a text colour and a background colour, check the contrast once, and it is done. On glass, the background is whatever happens to be behind it, and that changes as the page scrolls. White text that is perfectly clear over a dark photograph becomes invisible when a pale section slides underneath.
- Make the tint strong enough. A panel that is 50 to 70 per cent opaque with a heavy blur stays readable over almost anything.
- Test the text against the lightest and the darkest content that can appear behind it. Both must meet the minimum contrast of 4.5 to 1.
- Use glass for short, large text: headings, labels and buttons. Keep paragraphs on solid surfaces.
- Add a faint text shadow or a darker inner layer if a heading still struggles.
- Give visitors who ask for it a solid alternative.
@media (prefers-reduced-transparency: reduce) {
.glass {
background: #14181f;
backdrop-filter: none;
}
}
@media (prefers-contrast: more) {
.glass {
background: #14181f;
border-color: #ffffff;
}
}The prefers-contrast setting is supported in every current browser. Support for prefers-reduced-transparency is less complete, so treat it as an extra and do not depend on it. Our guide to web accessibility covers contrast in more detail.
Glassmorphism and Performance
Blurring is one of the more expensive things a browser does. For every frame, it has to take the pixels behind the panel, blur them and draw the panel on top. One glass header is no trouble. A page of large blurred panels, especially ones that move or sit over video, can make scrolling stutter on older phones and laptops.
- Keep blurred areas few and reasonably small.
- Avoid animating the blur radius. Animate opacity or position instead.
- Be careful with glass over video or continuously moving backgrounds.
- Test on a mid-range phone, not only on a new computer.
- Check the page's Core Web Vitals after adding the effect, particularly responsiveness.
Glass on Dark and Light Designs
Glass looks particularly good on dark and richly coloured backgrounds, where a lighter translucent panel reads clearly as a raised layer. That is one reason the style and dark mode have risen together. On a light page, use a white tint with a soft shadow, and expect a subtler result.
Whatever the theme, the background deserves as much design as the panel. Soft gradients and large blurred shapes of colour work better than detailed photographs, which turn into visual noise behind the glass.
Common Glassmorphism Mistakes
- Glass over nothing. Without colour behind it, the effect is invisible.
- Too transparent. A panel that is barely tinted gives the text no stable background.
- Body text on glass. Paragraphs need a solid surface.
- Glass everywhere. When every element is translucent, there are no layers left to tell apart.
- No fallback. Without one, an unsupported browser shows unreadable text on a see-through panel.
- Ignoring performance. Large animated blurs are slow on modest devices.
Putting It Into Practice
Reading about a technique is the easy part. Applying it to a real business, with real content and a launch date, takes judgement about what to use and what to leave out. DigitalPod is a UK-based design and web development studio that designs every site from a blank page and builds it by hand, so a technique is used because it helps the business and not because a template came with it. If you would like a website designer to handle it for you, startup website design is what we specialise in, websites start from £2,400 and our website redesign service brings an older site up to date.
Frequently Asked Questions
What is glassmorphism?
Glassmorphism is a visual style in which interface elements look like frosted glass. Panels are partly transparent, the content behind them is blurred, and a thin light border suggests the edge of the glass. It creates a sense of layers floating above a colourful background.
How do you create glassmorphism in CSS?
Give the element a semi-transparent background colour, add backdrop-filter: blur() to blur what is behind it, and finish with a thin translucent border and a soft shadow. Place it over a gradient or an image, because the effect is only visible when there is something to blur.
Is glassmorphism bad for accessibility?
It can be. Text on a translucent panel changes contrast as different content passes behind it, so it may be readable in one place and not in another. Using a strong tint and a heavy blur, keeping body text on solid surfaces and testing against light and dark backgrounds makes it safe.
Do all browsers support backdrop-filter?
Yes, every current major browser supports it. Older versions of Safari needed the -webkit- prefix, so it is still common to include both lines. A solid fallback background, with the effect applied inside an @supports rule, covers anything older.
Is glassmorphism still popular?
Yes. It has been a steady part of interface design for several years, and Apple's Liquid Glass design language, introduced in 2025, brought it renewed attention. On websites it is best used as an accent on a few elements, not as a theme for the whole page.