---
title: "Comment by DemoVexa on \"Frosted glass you can wipe with your finger\" | Hashnode"
description: "Cutting the wiped mask out of the frost each frame, instead of redrawing the frost itself, keeps the whole effect cheap, and capping the canvases at 1.5x device"
url: "https://hashnode.com/posts/frosted-glass-you-can-wipe-with-your-finger/6b0c7254c5ad084e3e52f428/comment/6b0e363dff6e17df4cf4a742"
---

[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)

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

Cutting the wiped mask out of the frost each frame, instead of redrawing the frost itself, keeps the whole effect cheap, and capping the canvases at 1.5x device pixel ratio is a sensible answer to the phone question. Growing the ferns as curved stems with barbs, rather than branching lines, is the detail that makes it read as real frost. One thing I'd check is prefers-reduced-motion, so the drops and regrowth can pause for people who turn animation off.

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

[18h ago](https://hashnode.com/posts/frosted-glass-you-can-wipe-with-your-finger/6b0c7254c5ad084e3e52f428/comment/6b0e363dff6e17df4cf4a742#reply-6b0e67f688581f3d213d645d)

Thanks for reading it this closely! Good call on reduced motion. It's partly handled already: with prefers-reduced-motion: reduce, the running drops, the drips from the letters and the sparkle glints are all turned off, so wiping just clears the glass. The frost does still grow back slowly. It's a gradual fade, not movement, but you're right that it's still a change nobody asked for, so I'll pause it under reduced motion in the next version. Until then, regrow: 0 turns it off completely.

And yes, the curved stems with barbs were the part that took the longest. Branching lines looked like cracks, not ice.

[DemoVexa](https://hashnode.com/@demovexa)

[16h ago](https://hashnode.com/posts/frosted-glass-you-can-wipe-with-your-finger/6b0c7254c5ad084e3e52f428/comment/6b0e363dff6e17df4cf4a742#reply-6b0e85be9b78345ce65afac3)

Pausing the regrowth under reduced motion sounds right, and regrow: 0 is a good fallback until then. Funny that branching lines read as cracks, but once you say it you can see it. When you pause it in the next version, will the wiped area stay clear for the whole visit, or start growing back if someone turns reduced motion off mid-session?
