Glassmorphism Effect Generator
Set the blur, transparency, border width, border opacity, corner radius, and background color of a frosted-glass panel and see it over a purple gradient in the Live Preview. The CSS box underneath lists the exact declarations: an rgba background, backdrop-filter with its -webkit- twin, border radius, and a border. Copy CSS puts all five lines on your clipboard, ready to paste into a card rule.
How to design a glass card
- Drag Background Blur (px) from 0 to 50 to set how strongly the backdrop is blurred.
- Drag Transparency (%) to set the alpha of the tint. Despite the label, a higher number is more opaque, not more see-through.
- Set Border Width (px), Border Opacity (%), and Corner Radius (px) to shape the edge.
- Choose the tint under Background Color. White is the default, and a typed hex code applies once all six digits and the # are in.
- Press Copy CSS and paste the five lines into your element's rule.
What makes the glass effect work
The frosted look comes from backdrop-filter: blur(), which blurs whatever is painted behind the element, combined with a semi-transparent rgba() background that tints it. The effect only reads as glass when something colorful sits behind the panel. Over a plain white page the default white tint barely shows at all, so judge the preview as a recipe and test it on your real background.
This generator derives the border color from your tint by moving each channel halfway toward white, then applies your Border Opacity to it, so the edge catches light. Keep in mind that backdrop-filter is expensive to paint on large or animated areas, and the preview's heading and subtitle use fixed dark text colors. If you place light text on a dark tint, check its contrast separately.