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.
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.
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?
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?
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.
DemoVexa
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.