Mitcheljager / svelte-confetti

Confetti in Svelte! Celebrate things with some extra flair. Animates using just HTML and CSS meaning it can work with SSR in SvelteKit!
https://mitcheljager.github.io/svelte-confetti/
265 stars 10 forks source link

Confetti rain lagging #7

Closed CustomEntity closed 1 year ago

CustomEntity commented 1 year ago

Hello, when I take back the confetti rain from the documentation my whole page starts to lag whereas on the documentation site no problem, would you know where this could be coming from? Example here. The today's answer is "Neon".

Mitcheljager commented 1 year ago

I'm having a hard time reproducing it, as it heavily depends on your own device and set up. A large amount of elements are created for the confetti, depending on the amount prop. By themselves this shouldn't be a huge deal, but if you have things like MutationObservers running, they might have to work a little harder when they elements are created.

I will close this issue for now, but feel free to re-open if you can provide an isolated environment where this happens.