Lurker News
There are lots of glassmorphism generators out there, but I wanted to push the effect further! This project is the result of months of experimenting with CSS property layering and battling browser quirks.

Cross-browser compatibility is actually the reason I rely on ::before and ::after pseudo-elements to build up the effect. Move the color/opacity to the main element, and you’ll get weird color bleed on the corners in Chrome. Move the texture, and it muddles the bevel’s specular highlight. Move the bevel, and it gets blurred out by the backdrop-filter. And so on!
Layers include: * Adjustable blur, brightness, and saturation (backdrop-filter) * Subtle translucent texture * Faux 3D bevel (using box-shadows, not an outline)
Glassmorphism is rather heavy on resources, so it’s best used as an accent and avoided on wide desktop elements. Should be compatible with recent versions of Chrome, Safari, and Firefox (desktop and mobile). If you spot bugs or rendering glitches, I’d love to know!
Side note: this is an early preview of a framework-agnostic glass SCSS/component library I’m building.

Comments (117) 32 threads

Earlier comments
jand1 reply#
Are users allowed to copy the referenced egg-shell.png and host it themselves or is this connected to some sort of metric you like to gather?
victorbjorklund1 reply#
If you got to the site hosting the image it says:

/* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */

thecosas2 replies#
I can see people using this to have their websites (or apps) fit into the design of Apple's OS 26 design language. Neat!
CharlesW1 reply#
FWIW, this looks nothing like the iOS 26 (which I’ve been using on my primary phone) Liquid Glass effects.
kris-kay#
True, but it wasn't meant to. I installed the 2nd beta on my phone as well and like it so far.
kris-kay#
Thanks, I hope it can be useful for people, especially when I make the library public.
utopcell1 reply#
> This project is the result of months of experimenting [..]

It shows, this is awesome, especially that rice paper effect!

kris-kay#
Thank you!
elpocko3 replies#
Is this considered new design? What is special about it? I don't see much of a difference compared to the Aero glass effect in Windows Vista from 2006. I've also seen it on many websites, using `backdrop-filter: blur`. Or am I missing something?
rpastuszak2 replies#
You’re not looking far back enough:) I see it more as a new Aqua from OSX Cheetah (2000 CE)

This is a slight tangent, but 20 years ago I had a nightmare in which I got hit by a tram, died and travelled in time into a world where every computer was running Windows Vista. In other words, fair enough, you might be onto something here after all.

elpocko1 reply#
>Aqua from OSX Cheetah

I've never used OSX, but I would guess from screenshots that it didn't do dynamic layered gaussian blur of large screen regions in realtime, which would've been too much for the hardware of the year 2000.

rpastuszak1 reply#
That is true, but don't forget water is the essence of moisture.

Also, those scrollbars were quite impressive for their time.

Continue this thread — 1 reply

kris-kay#
The 2000 CE bit made me laugh! And yes, Windows Vista was a proper nightmare.
kris-kay#
You're right, glassmorphism dates back to the early years of this millennium. For instance, Project Looking Glass(2003) attempted an entire desktop environment that resembled slabs of glass that could be turned over in 3D space!

Even so, I haven't found another glass generator that has a texture layer and box-shadow bevel, etc.

account42#
It's the Apple effect. Old tricks become the hot new thing when they discover them.

Load more comments