I made liquid glass with CSS:)
liquid-glass.atlaspuplabs.com
I made liquid glass with CSS:)
1–9 of 9 posts
Re: I made liquid glass with CSS:)
#2Was watching WWDC earlier this week, and was curious how close you could get to liquid glass in the browser. Turns out, pretty darn close. This approach is almost pure CSS, and even replicates the refraction you see in Apple's components. This was a quick and dirty "I wonder if" project, so there's pretty much no cross browser support (this only really works well in Chrome on desktop at the moment)— but if there's interest, I'm considering cleaning it up into a full-fledged react library (and adding real cross-compatibility).
Let me know what you think! :)
Re: I made liquid glass with CSS:)
#3Re: I made liquid glass with CSS:)
#4Long time lurker, first time poster— be gentle :P Was watching WWDC earlier this week, and was curious how close you could get to liquid glass in the browser. Turns out, pretty darn close. This approach is almost pure CSS, and even replicates the refraction you see in Apple's components. This was a quick and dirty "I wonder if" project, so there's pretty much no cross browser support (this only really works well in C…
Re: I made liquid glass with CSS:)
#5Long time lurker, first time poster— be gentle :P Was watching WWDC earlier this week, and was curious how close you could get to liquid glass in the browser. Turns out, pretty darn close. This approach is almost pure CSS, and even replicates the refraction you see in Apple's components. This was a quick and dirty "I wonder if" project, so there's pretty much no cross browser support (this only really works well in C…
What is the browser support? I'm in Orion (webkit) and can't see any changes when moving the sliders.
Re: I made liquid glass with CSS:)
#6Re: I made liquid glass with CSS:)
#7Long time lurker, first time poster— be gentle :P Was watching WWDC earlier this week, and was curious how close you could get to liquid glass in the browser. Turns out, pretty darn close. This approach is almost pure CSS, and even replicates the refraction you see in Apple's components. This was a quick and dirty "I wonder if" project, so there's pretty much no cross browser support (this only really works well in C…
But React and frameworks in general are the past. How about a native web component, like with Lit?
Re: I made liquid glass with CSS:)
#8Long time lurker, first time poster— be gentle :P Was watching WWDC earlier this week, and was curious how close you could get to liquid glass in the browser. Turns out, pretty darn close. This approach is almost pure CSS, and even replicates the refraction you see in Apple's components. This was a quick and dirty "I wonder if" project, so there's pretty much no cross browser support (this only really works well in C…
Awesome! I'm a huge fan of advanced CSS and I knew someone would do this. But React and frameworks in general are the past. How about a native web component, like with Lit?
As for your first comment though, me too! I love abusing CSS :P
Re: I made liquid glass with CSS:)
#9Earlier quoted context omitted.
Awesome! I'm a huge fan of advanced CSS and I knew someone would do this. But React and frameworks in general are the past. How about a native web component, like with Lit?
I'm not sure I agree with the sentiment that "React is in the past". According to the 2024 State of JS, [it's still used by 67% of engineers]( https://2024.stateofjs.com/en-US/libraries/front-end-framewo... ), compared to just 4% of engineers using Lit. If I were to make a library out of this, I'd want to target the largest cohort of developers I could, so I'm not sure writing one in Lit makes a lot of sense. As for…
You can write it as a native web component and ship something that works with React and without React.