Glassmorphism Generator
Create frosted glass effects and copy the CSS code
Ad
Glass Card
This is a frosted glass effect created with CSS backdrop-filter.
#ffffff
#ffffff
Ctrl+Enter
Ad
Frequently Asked Questions
What is glassmorphism? +
Glassmorphism is a modern UI design trend that creates a frosted glass appearance using CSS. It features a semi-transparent background with a backdrop blur effect, subtle borders, and shadows. The key CSS properties are backdrop-filter: blur(), a semi-transparent background color using rgba(), and a light border to enhance the glass edge.
What CSS properties are used for glassmorphism? +
The main CSS properties for glassmorphism are: backdrop-filter: blur() to create the frosted effect behind the element, background: rgba() with low opacity for transparency, border: 1px solid rgba(255,255,255,0.2) for a subtle glass edge, and box-shadow for depth. The -webkit-backdrop-filter prefix is needed for Safari.
Does backdrop-filter work in all browsers? +
backdrop-filter is supported in Chrome, Edge, Safari, and Opera. Firefox added support in version 103+. Safari requires the -webkit-backdrop-filter prefix. For older browsers without support, you can provide a fallback using a solid semi-transparent background color, which looks similar but without the blur effect.
How do I create a frosted glass card effect? +
To create a frosted glass card: 1) Place the card over a colorful background (gradient or image), 2) Set the card's background to rgba(255,255,255,0.15), 3) Apply backdrop-filter: blur(10px), 4) Add a subtle border like border: 1px solid rgba(255,255,255,0.2), 5) Add border-radius for rounded corners and box-shadow for depth.
What makes a good glassmorphism background? +
Glassmorphism works best over colorful, high-contrast backgrounds like vibrant gradients, images, or shapes. The frosted glass effect needs visual content behind it to be noticeable. Gradients with 2-3 bold colors (purple, blue, pink, orange) are the most popular choice. A plain white or dark background will make the glass effect invisible.
Ad