26 comments

  • _ZeD_ 2 hours ago

      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...
    • sonar_un 9 minutes ago
      Ok, this was the funniest comment i've read in a while.
    • ivolimmen 1 hour ago
      I had the same reaction but the weird thing is: it looked ok in FireFox..?
      • nine_k 15 minutes ago
        Not OK on mobile Firefox: displacement maps do not apply, so there's no actual refraction, the liquid feeling; there's only the specular effect at the edges. Try opening it in a Chromium-based browser and compare.
      • yreg 1 hour ago
        Yeah, curious. The mentioned backdrop-filter seems to be supported everywhere

        https://caniuse.com/?search=backdrop-filter

        • Cu3PO42 1 hour ago
          backdrop-filter is supported by all major browsers, but specifically using SVG filters, which are more powerful and is out-of-spec, is only supported in Chromium-based browsers.
          • freehorse 37 minutes ago
            Not sure if this is relevant, but while moving the slider around, in chromium i see 40% gpu utilisation, while in firefox less than 20% (macbook m3 pro). I do not observe any noticeable difference otherwise in terms of quality.

            PS Neat website and explanations, but talking about the liquid glass as a design principle in general, I would rather ui elements in a random website not use that much of gpu for not great reasons but maybe that's my problem of not thinking different.

    • 7bit 1 hour ago
      Works fine on Firefox tho
      • pcardoso 52 minutes ago
        And for me it was where it was the smoothest. But it even worked in Safari, albeit a bit slowly.
      • hyperbolablabla 44 minutes ago
        Not on mobile
  • explosion-s 7 hours ago
    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
    • Lorin 2 hours ago
      What is causing the ghosting/delay when moving the glass over text?
    • IshKebab 1 hour ago
      Looks nice! It's too slow to actually use though. Op's is much smoother.
      • qzio 57 minutes ago
        It's the opposite on my macbook pro/chrome computer... the OP is unusable, but the webGL version is super smooth
      • thisOtterBeGood 1 hour ago
        Not over here. As far as I understand Op's solution does not utilize a gpu.
        • freehorse 31 minutes ago
          I actually see gpu utilisation in OP's website when I move things (m3 pro), but this other solution shows much less gpu utilisation (prob more efficient?).
    • cycomanic 5 hours ago
      Cool this looks like it even has dispersion, i.e. colors separate at the edge of the glass element.
    • davidmurdoch 6 hours ago
      Impressive!
  • meindnoch 3 minutes ago
    Apple lost it when Johnny Ive died.
  • msy 6 hours ago
    Impressive but also impressive in that scrolling down through the examples makes my fully-loaded M4-Max Macbook Pro judder. I hate to imaging the performance of a full UI leveraging this stuff. Apple can do it in the UI because they can optimize the hell out of it.
    • kubeio 6 hours ago
      Haha, I’m the author of the post.

      I planned to fix the performance issues before posting here (since I knew HN would be quick to point that out), but somebody posted it first. You’re absolutely right — it’s pretty slow right now and needs optimization.

      And it’s not just the refraction/displacement map: plenty of other parts, like visualisations, aren’t optimized yet either.

      • jonahx 3 hours ago
        Performance aside, this is really well done.
    • kubeio 3 hours ago
      I did a quick performance fix, should be a bit better, at least on Chrome.

      (Safari stills seems to be a bit slow to render SVGs)

      Anyway, I did not expect this blog post to be on HN, so still things to improve on it.

    • StrangeDoctor 6 hours ago
      Yeah this site does not scroll like butter as it were.

      But I don’t think css can leverage the gpu in most (any?) cases. Apple has almost certainly baked something into the silicon to help handle the ui.

    • spicybright 6 hours ago
      Same, very laggy on my machine. The spectacular border effects also didn't work for me.
  • miyuru 35 minutes ago
    Netlfix's logged out UI has this glass effect for background for some time and it slows down the whole site.

    https://www.netflix.com/browse/genre/839338

  • cpojer 6 hours ago
    I forked a JS library for liquid-glass and patched it up with some positioning fixes. It's fun to use in presentations.

    See https://github.com/nkzw-tech/liquid-glass

  • maelito 55 minutes ago
    None of it looks usable. Perfect for digital family photos.

    Great article though.

  • _pferreir_ 1 hour ago
    I first tried the demos on Firefox and was like "wow, this looks fancy". Then, I saw there was a "Chrome-only" warning. I actually prefer the way it looks on Firefox, TBH.
  • creatonez 2 hours ago
    The thing that makes liquid glass actually somewhat work compared to previous shiny glass designs is the automatic tint adjustment for contrast. Nothing I've seen actually pulls this off.
  • RestartKernel 6 hours ago
    By far the most impressive browser implementation of glass I've seen. Though it doesn't seem like it'd be viable in a "real" website due to compatibility and performance.
  • delta_p_delta_x 7 hours ago
    Very nice, I really like the vector animations :)

    One thing I'd say is to apply some anti-aliasing (MSAA, SMAA?)—even on a 4K display with a pixel density of 64.3 px/cm, the jaggies are visible, especially because of the extreme contrast of the caustics behind the dark background.

    • rezmason 7 hours ago
      I'm not especially familiar with this, but I believe making the SVG element larger can increase its filter effects' resolution, and then using CSS transforms to scale the element's parent will return it to its original size, but with a higher resolution result. From there, additional changes to the filter effect (to incorporate a subtle blur for instance) may help it over the finish line.

      Regardless, this is a great writeup for changes I wish to never see in ordinary UI.

  • levmiseri 1 hour ago
    As much as I still dislike Liquid Glass, this is insanely impressive!
  • internet2000 3 hours ago
    Very close, but no cigar. The magnifying glass effect distorts the text just enough to make it look off compared to the real thing. The "l" in displacement is really tilted, and the angle changes as you move the lens around. https://i.imgur.com/PW4RAYq.png
  • jrochkind1 4 hours ago
    i'm amazed how good the write-up is, with amazing interactive visual aids!
  • thrtythreeforty 5 hours ago
    How are the vector field animations done? The whole website is impressive but I'd love to be able to build those.
    • kubeio 5 hours ago
      I used React with vanilla SVG and Motion to animate.
  • occoder 1 hour ago
    Apple design nowadays should be something we point to and laugh at, not something to imitate.

    Apple lost the plot on design after Steve Jobs died and Jony Ive assumed full control.

    It's not Jony Ive's fault. That's the nature of their partnership, he created and Steve Jobs edited. Ive, of all people, probably lost the most when Steve Jobs died.

    It's all been downhill ever since. Ousting Jony Ive and putting Alan Dye in charge didn't help.

    The problem remains: there's no longer an editor in charge.

    Apple fans like to think that they've recovered a little since the iOS 7 debacle, but in reality it's just self delusion.

    • SchemaLoad 1 hour ago
      I've been running the beta on my phone for a while ago, and I pretty much forgot about it. The new design works really well and is much less obtrusive than you'd imagine. Those few bad moments posted from the first dev beta have all been resolved now.
      • occoder 1 hour ago
        Most people aren't very discerning about user interface intricacies.

        Most people's reaction to the iOS 7 design disaster was: "ooh this feels like a whole new phone".

        So there's that.

  • airstrike 3 hours ago
    Strangely the "Playground" session seems to work well in Firefox but nothing else does
  • hermitcrab 45 minutes ago
    Some serious work has gone into this article.

    Unconvinced about the usability case for 'glass'.

    Once again, Apple takes off and nukes it's developer ecosystem from orbit.

  • ryukoposting 2 hours ago
    Very slick. Shame it doesn't work on Firefox.
  • altairprime 7 hours ago
    I’d be very interested to compare the power efficiency of this implementation versus the OS-native version of same over a 12-hour benchmark.
  • calrain 1 hour ago
    Incredible work on the CSS and SVG!

    But liquid glass is such a horrible idea for a UI!

    Now I feel like an old person, but I live with glasses every day and absolutely love clean UI's.

    Introducing glass lens f*ckery just for the sake of it is terrible.

  • WD-42 6 hours ago
    Does this not work on Firefox? Just looks like regular gradients.
    • al_borland 6 hours ago
      > 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.

      • WD-42 4 hours ago
        I think I’ve trained myself to ignore shiny boxes outside the main text like that. Most of the time they are trying to sell something.
        • efilife 2 hours ago
          Me too. Sometimes when I browse the internet with my girfriend aside she comments on something and I have no idea what she means. She has to literally point at the screen and show me the text I've ignored and it's ALWAYS the biggest and most flashy font ever
  • LeoPanthera 4 hours ago
    404'd?
  • tkzed49 7 hours ago
    this is the first one I've seen that isn't just feTurbulence. Thank you for doing it right! I've been thinking about it since the first liquid glass clones!
  • tossit444 4 hours ago
    404?
  • retox 3 hours ago
    Maybe technically impressive but please don't use this on your websites, it looks like shit (the effect in general, not this specific implementation)
    • SchemaLoad 1 hour ago
      It looks really good on iOS. I've been running the beta for a while and the execution is great.