Live data from Hacker News

Liquid Glass in the Browser: Refraction with CSS and SVG

kube.io

71–80 of 127 posts

Re: Liquid Glass in the Browser: Refraction with CSS and SVG

#71
post #34

Chrome‑only demo The interactive demo at the end currently works in Chrome only (due to SVG filters as backdrop‑filter). You can still read the article and interact with the inline simulations in other browsers. Dishonor on your WHOLE FAMILY! dishonor on you, dishonor on your cow...

What is funny is that for me the page on Chrome is slower and the scrolling jankier than on Firefox with the unsupported effects (macOS M1).

Besides that, very impressed by the article presentation.

Re: Liquid Glass in the Browser: Refraction with CSS and SVG

#74

I made something similar to this with WebGL shaders (the benefit being it works across browsers): https://real-glass.vercel.app - The tricky thing for me was making it refract real HTML elements behind

Cool this looks like it even has dispersion, i.e. colors separate at the edge of the glass element.

https://en.wikipedia.org/wiki/Chromatic_aberration

?

Re: Liquid Glass in the Browser: Refraction with CSS and SVG

#79
post #38
post #34

Chrome‑only demo The interactive demo at the end currently works in Chrome only (due to SVG filters as backdrop‑filter). You can still read the article and interact with the inline simulations in other browsers. Dishonor on your WHOLE FAMILY! dishonor on you, dishonor on your cow...

Works fine on Firefox tho

No. It becomes apparent in the "Magnifying Glass" demo. Nothing is magnified in Firefox, while it is a really cool effect in Chrome.

Re: Liquid Glass in the Browser: Refraction with CSS and SVG

#80
post #34

Chrome‑only demo The interactive demo at the end currently works in Chrome only (due to SVG filters as backdrop‑filter). You can still read the article and interact with the inline simulations in other browsers. Dishonor on your WHOLE FAMILY! dishonor on you, dishonor on your cow...

This is exactly the kind of thing where this is OK since it's literally impossible otherwise. It's showcasing a specific feature that is not generally available.
Post reply on HN