[flagged]
I pressed the power button on my monitor, and now the website is all black.
A useful front-end confetti animation library
31–40 of 125 posts
Re: A useful front-end confetti animation library
#32I love a fun little projects like this that are purely for a good time. That's why I started programming and it's still a driving force.
Re: A useful front-end confetti animation library
#33This reminds me of some good times doing web development in high school in 2015. I made a small website with confetti to ask a girl to homecoming (very nerdy looking back). Back when making a website felt like a superpower to a kid. It seems like it wasn't this package based on age, but it was a really nice animation. I love a fun little projects like this that are purely for a good time. That's why I started program…
Re: A useful front-end confetti animation library
#34Re: A useful front-end confetti animation library
#35Earlier quoted context omitted.
Good simulations have constant time step and may not run in real time. From inside such simulation, you would never know.
I was introduced to this idea by the book Permutation City. Great read.
Re: A useful front-end confetti animation library
#36You have also Party.js library: https://party.js.org/
10.4 kB Minified, 4.2kB Minified + Gzipped https://bundlephobia.com/package/canvas-confetti@1.9.2
28.3kB Minified, 7.4kB Minified + Gzipped https://bundlephobia.com/package/party-js@2.2.0
caveat: I don't know how bundlephobia works, it might not give the best representation of the final size of the package. Probably doesn't take into account code-splitting or being able to import just what you need. I'm just using it as a quick and general overview.
Looks like confetti one beats it by a few KB gzipped so either works depending on which one has the feature you need, unless you're really trying to squeeze those kb.
Re: A useful front-end confetti animation library
#37Re: A useful front-end confetti animation library
#38This reminds me of some good times doing web development in high school in 2015. I made a small website with confetti to ask a girl to homecoming (very nerdy looking back). Back when making a website felt like a superpower to a kid. It seems like it wasn't this package based on age, but it was a really nice animation. I love a fun little projects like this that are purely for a good time. That's why I started program…
Did it work? Did she say yes?
Re: A useful front-end confetti animation library
#39Re: A useful front-end confetti animation library
#40So the trick for performant animation here is to draw on canvas and put the canvas in front of all other elements but disable pointer events on canvas so that you can still interact with the page.