It’s allmost Christmas and some may want to use Norm’s “Snow” bric.
So far so good.
But weird things happen when you preview your page with Safari and Orion.
The mouse cursor stutters. Not only on the browser but on the whole screen.
All good with other browsers.
Just checked this out @Bootsie. It’s working fine here on some test sites running under Sequoia, in various browsers. Wonder if this is some kind of MacOS Tahoe issue?
I don’t have my laptop (running Tahoe) with me in the office, so I’ll check on that later today and get back to you.
There are certainly (still) many (current) reports of Safari having issues, slow, sluggish, under MacOS Tahoe from users.
@Bootsie, are you maybe setting the count really high for the number of flakes?
Norm, there does not seem to be a restriction for max number regarding the input for the Bric, even in the updated version. Probably should be restricted within reason, at a minimum.
The library used (pure-snow.js) can have issues concerning performance regarding too many snowflakes (depending on user specs). It’s said to work in every modern browser, however it’s not an optimized approach that this library uses, quite the contrary actually.
So this and the present Safari issues under MacOS Tahoe could be coupled together to make it more obvious?
Using Canvas with various optimizations would be far more performant for such an effect, it could even include different counts across breakpoints as one optimization to lessen the load across various device sizes. The Confetti bric to snow idea might be a good idea, since its canvas.
Using the default setting (400) causing problems.
Even in Blocs preview the cursor is hardly to control.
When you reduce to 200 it’s far better.
100 looks like smooth mouse move.