<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/liquid-glass-in-the-browser-refraction-with-css-and-svg-kube-io-9titwb303" -->

---
title: Liquid Glass in the Browser: Refraction with CSS and SVG...
description: A comprehensive technical guide to recreating Apple's Liquid Glass UI effect using CSS, SVG displacement maps, and physics-based refraction calculations....
canonical: https://daily.dev/posts/liquid-glass-in-the-browser-refraction-with-css-and-svg-kube-io-9titwb303
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Liquid Glass in the Browser: Refraction with CSS and SVG — kube.io | daily.dev
og:description: A comprehensive technical guide to recreating Apple's Liquid Glass UI effect using CSS, SVG displacement maps, and physics-based refraction calculations....
og:url: https://daily.dev/posts/liquid-glass-in-the-browser-refraction-with-css-and-svg-kube-io-9titwb303
og:image: https://api.daily.dev/og/posts/9TItwb303.png
og:image:alt: Liquid Glass in the Browser: Refraction with CSS and SVG — kube.io
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Liquid Glass in the Browser: Refraction with CSS and SVG — kube.io

**[Hacker News](https://daily.dev/sources/hn)** · 12 min read · 55 upvotes · 4 comments

## Summary

A comprehensive technical guide to recreating Apple's Liquid Glass UI effect using CSS, SVG displacement maps, and physics-based refraction calculations. Covers the mathematical principles of light refraction through Snell's Law, surface function modeling, displacement vector field generation, and SVG filter implementation. Includes interactive simulations and practical UI component examples like magnifying glass, search box, and music player interfaces. Currently Chrome-only due to SVG backdrop-filter limitations.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://kube.io/blog/liquid-glass-css-svg/>

## Community discussion

Top comments from developers on daily.dev.

**@tristian\_potgieter** · 1 upvotes

> Insane ! Some people are very smart

**@jessyco** · 0 upvotes

> Ah most of the effects do not work in FireFox.

**@vaxul** · 0 upvotes

> Just brillant. 🤯

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#apple](https://daily.dev/tags/apple), [#css](https://daily.dev/tags/css), [#svg](https://daily.dev/tags/svg)

[View this post on daily.dev](https://daily.dev/posts/liquid-glass-in-the-browser-refraction-with-css-and-svg-kube-io-9titwb303)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Liquid Glass in the Browser: Refraction with CSS and SVG — kube.io","url":"https://daily.dev/posts/liquid-glass-in-the-browser-refraction-with-css-and-svg-kube-io-9titwb303","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/liquid-glass-in-the-browser-refraction-with-css-and-svg-kube-io-9titwb303"},"datePublished":"2025-09-09T03:25:46.385Z","dateModified":"2025-09-09T03:26:11.192Z","description":"A comprehensive technical guide to recreating Apple's Liquid Glass UI effect using CSS, SVG displacement maps, and physics-based refraction calculations....","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/beffbb36fe8cb6e60f30c71aaa906892?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/beffbb36fe8cb6e60f30c71aaa906892?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":4,"discussionUrl":"https://daily.dev/posts/liquid-glass-in-the-browser-refraction-with-css-and-svg-kube-io-9titwb303","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":55},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":"webdev,apple,css,svg","timeRequired":"PT12M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Liquid Glass in the Browser: Refraction with CSS and SVG — kube.io"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/liquid-glass-in-the-browser-refraction-with-css-and-svg-kube-io-9titwb303","comment":[{"@type":"Comment","text":"Insane ! Some people are very smart","datePublished":"2025-09-09T10:55:50.344Z","url":"https://daily.dev/posts/9TItwb303#c-xceObjcGf","author":{"@type":"Person","name":"Tristian","url":"https://daily.dev/tristian_potgieter","image":"https://avatars.githubusercontent.com/u/102797825?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Ah most of the effects do not work in FireFox.","datePublished":"2025-09-09T18:20:09.633Z","url":"https://daily.dev/posts/9TItwb303#c-1NKcOMfat","author":{"@type":"Person","name":"jessy.co","url":"https://daily.dev/jessyco","image":"https://avatars.githubusercontent.com/u/1643234?v=4"}},{"@type":"Comment","text":"Just brillant. 🤯","datePublished":"2025-09-10T06:08:42.085Z","url":"https://daily.dev/posts/9TItwb303#c-9vRHG76Gv","author":{"@type":"Person","name":"David","url":"https://daily.dev/vaxul","image":"https://media.daily.dev/image/upload/s--uGg1p2G2--/f_auto/v1723011421/avatars/avatar_c4XEAXU1WcB64CxDpZv1o"}}]}
```

