---
title: "Comment by Ehsan on \"Frosted glass you can wipe with your finger\" | Hashnode"
description: "The backdrop blur following each wipe is the part I'd have given up on. Did you have to cap the canvas resolution to keep it smooth on phones?"
url: "https://hashnode.com/posts/frosted-glass-you-can-wipe-with-your-finger/6b0c7254c5ad084e3e52f428/comment/6b0d3c157b2c249dc6cdc5a7"
---

[Discussion](https://hashnode.com/posts/frosted-glass-you-can-wipe-with-your-finger/6b0c7254c5ad084e3e52f428)

Comment [Frosted glass you can wipe with your finger](https://hashnode.com/posts/frosted-glass-you-can-wipe-with-your-finger/6b0c7254c5ad084e3e52f428)

[Ehsan](https://hashnode.com/@ibuildinpublic)

[1d ago](https://hashnode.com/posts/frosted-glass-you-can-wipe-with-your-finger/6b0c7254c5ad084e3e52f428/comment/6b0d3c157b2c249dc6cdc5a7)

The backdrop blur following each wipe is the part I'd have given up on. Did you have to cap the canvas resolution to keep it smooth on phones?

[Frantisek Gejdos](https://hashnode.com/@gejdos)

[1d ago](https://hashnode.com/posts/frosted-glass-you-can-wipe-with-your-finger/6b0c7254c5ad084e3e52f428/comment/6b0d3c157b2c249dc6cdc5a7#reply-6b0d8ebc01af2ddc3e9a349d)

Thanks! Yes, but not where you'd expect. The frost canvases are capped at 1.5× device pixel ratio, so a 3× phone isn't pushing 9× the pixels. The blur itself is a plain CSS backdrop-filter layer, and the browser does that work on the GPU. The trick is the mask that decides where it applies: it's a tiny density canvas at 1/8 resolution, which gets scaled up and set as a CSS mask-image. It's only rebuilt at most every 140 ms while you wipe, because that's the expensive part. You don't notice the lag since the sharp frost layer on top updates every frame, and the blur underneath just catches up. The base haze is drawn at low resolution and smoothed on upscale for the same reason. As of v1.1 it wipes on press-and-drag instead of hover too. That was a design change rather than a performance one, but it also means less redrawing while people just browse.
