Logo

Glassmorphism Generator

Design frosted-glass UI effects and export CSS, SCSS, Tailwind, or React code instantly

Background Scene

Controls

16px
15%
180%
20%
1px
24px
32px
0px
24px
48px
12%

Quick Presets

Live Preview

Glassmorphism Card

Experience the frosted glass effect. Adjust blur, opacity, saturation, and more to create your perfect glass card.

Generated Code

/* Glassmorphism Card — generated by OmniWebKit */
.glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0px 24px 48px rgba(0, 0, 0, 0.12);
  padding: 32px;
}

CSS Property Quick Reference

backdrop-filter: blur()

The core glassmorphism property. 8–24px is the sweet spot for most designs.

backdrop-filter: saturate()

Increases colour vibrancy visible through the glass. 150–200% gives a vivid look.

background: rgba()

Controls the glass tint colour and opacity. 10–25% opacity usually looks best.

Free Glassmorphism CSS Generator — Create Frosted Glass UI Effects Online

Glassmorphism is one of the most popular UI design trends of the past few years. It creates a frosted glass appearance using CSS backdrop filters, translucent backgrounds, and subtle borders. The result is a layered, depth-rich interface that feels modern, elegant, and visually striking — especially when placed over colourful gradients or vibrant photography.

The OmniWebKit Glassmorphism Generator lets you design and preview frosted glass cards in real time, then export the code in four formats: plain CSS, SCSS with variables, Tailwind CSS utility classes, and React inline styles. Every control — blur intensity, glass opacity, saturation boost, border width, border opacity, border radius, card padding, shadow position, shadow blur, and shadow opacity — updates the live preview instantly.

Choose from nine background presets (mesh gradient, aurora, sunset, ocean, midnight, neon, forest, cosmic, vibrant) or enter your own custom colour. Apply one of six named presets (Modern, Minimal, Bold, Subtle, Vivid, Elegant) for a fast starting point, then fine-tune to your exact taste.

What Makes Glassmorphism Work — The CSS Behind the Effect

The glassmorphism effect is built from four CSS properties working together. Understanding what each property does helps you create better-looking glass cards and troubleshoot issues when the effect doesn't look right.

backdrop-filter: blur()

This is the single most important property for the glassmorphism effect. It blurs everything behind the element, creating the frosted glass look. The blur value is measured in pixels. Values between 8px and 24px work best — too low and the glass looks transparent rather than frosted; too high and nothing behind the card is recognisable. Note: without a vibrant background behind the card, this property has very little visible effect.

backdrop-filter: saturate()

Applied alongside blur, saturate() boosts the colour vibrancy of everything visible through the glass. This gives the frosted glass a vivid, glowing quality that plain blurring doesn't achieve on its own. Values between 150% and 200% are typical. Setting it to 100% means no change; values above 200% can make the glass look very intense.

background: rgba()

This controls the glass panel's tint colour and opacity. Using rgba() allows you to set how visible (opaque) the glass is. A white glass with 10–20% opacity is the classic glassmorphism look. You can use any colour — blue glass, pink glass, or even a very dark tint for a smoked glass effect — by changing the RGB values. Keep opacity low; high values make the card look like a solid-colour box rather than glass.

border: rgba(255, 255, 255, 0.x)

A thin, semi-transparent white border catches light and defines the edge of the glass card, making it feel solid rather than floating. A 1px border at 20–30% opacity is the standard. Increasing the width to 2px or the opacity to 50% creates a more defined, modern look. A border with 0% opacity removes the edge highlight entirely.

box-shadow

The shadow grounds the glass card and creates the sense of depth and elevation. The glassmorphism convention is to use a soft, spread-out shadow (large blur value, low opacity) rather than a crisp, dark shadow. A shadow with 0 X offset, +24px Y offset, and 48px blur at 12% opacity creates a natural floating look. The Y offset controls the perceived height of the card above the background.

Browser Support and the -webkit- Prefix

The backdrop-filter property has broad support in modern browsers, but requires the -webkit-backdrop-filter prefix for Safari. This tool always outputs both versions so your glass cards work correctly in all major browsers.

BrowserSupportNotes
Chrome 76+✅ Fullbackdrop-filter supported natively
Firefox 103+✅ FullEnabled by default since v103
Safari 9+✅ With prefix-webkit-backdrop-filter required
Edge 79+✅ FullBased on Chromium, full support
IE 11❌ No supportbackdrop-filter not supported — use fallback

Frequently Asked Questions

Why does my glass card look solid and not transparent?+
The backdrop-filter: blur() property only creates a visible effect when there is something behind the element — ideally a colourful gradient or image. If your page has a plain white or dark background, the blur has very little visible effect. Place the glass card over a vibrant gradient background to see the full frosted glass effect.
Why does the blur effect not work in Firefox?+
Firefox enabled backdrop-filter by default from version 103. If you are using Firefox below 103, the effect will not appear. You can add a fallback: @supports not (backdrop-filter: blur()) { .glass-card { background: rgba(r, g, b, 0.85); } } to show a more opaque fallback for unsupported browsers.
What is the difference between opacity and glass opacity?+
The opacity CSS property makes the entire element and all its children transparent. The glassmorphism technique uses background: rgba() instead, which only makes the element's background semi-transparent while keeping the content (text, icons) fully visible.
Can I use these glass cards on dark backgrounds?+
Yes, but the effect looks different. On dark backgrounds, a white-tinted glass with low opacity shows a subtle frosted sheen. For dark backgrounds, try the midnight or cosmic presets and reduce the blur to 8–12px for a more defined look.
What output formats does this generator support?+
Four formats: plain CSS (`.glass-card` class with all properties), SCSS (same but with variables for easy editing), Tailwind CSS (utility class HTML snippet), and React (inline style object as a functional component). All four are updated in real time as you adjust the controls.
What does the saturation control do?+
The backdrop-filter: saturate() property boosts the colour vibrancy of whatever is visible behind the glass. At 100% there is no change. Values above 150% make the colours behind the glass more vivid and intense, which gives the frosted effect a higher-quality, glowing look. This is always applied together with blur() in the backdrop-filter property.
How do I add the glass effect to an existing element?+
Copy the CSS from the generator and add the .glass-card class to your HTML element. Make sure the element is positioned over a colourful background (not a plain white page). Also ensure the element does not have overflow: hidden if you want the blur to extend beyond its bounds.
What is the -webkit-backdrop-filter prefix for?+
This vendor prefix is required for Safari compatibility. Chrome, Firefox, and Edge support the standard backdrop-filter property, but Safari requires the -webkit- prefix. This generator always outputs both to ensure cross-browser support.
Advertisement
Logo

Your all-in-one digital toolkit with 100+ free online tools. Fast, secure, and always available when you need them.

Secure & Private

All processing happens locally in your browser

Mobile Friendly

Works perfectly on all devices and screen sizes

Always Free

No registration, no limits, completely free to use

100+
Free Tools
50K+
Daily Users
1M+
Tools Used
150+
Countries
© 2026 OmniWebKit. All rights reserved.
Made withfor developers and creators