Glassmorphism is the frosted glass look you see on Apple's interfaces, in Windows, and on half of the landing pages on Dribbble: a translucent card that blurs whatever is behind it, with a thin bright edge that catches the light.
It looks expensive, but in CSS it comes down to four properties . This guide explains each one, gives you a copy-paste class, covers the mistakes that make glass look like grey plastic, and links to a free live generator where you can tune every value with sliders and copy the result.
π Open the live glassmorphism generator : drag the sliders, watch the card change, press Get the CSS .
The four ingredients of glass
Real frosted glass does four things to the light that passes through it. Each one maps to a line of CSS.
1. A faint tint
Glass is never fully clear.β¦