Live data from Hacker News

A useful front-end confetti animation library

github.com

31–40 of 125 posts

Re: A useful front-end confetti animation library

#32
This 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 programming and it's still a driving force.

Re: A useful front-end confetti animation library

#33
post #32

This 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

#35

Earlier 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.

The idea on Permutation City is way crazier than a mere computer simulation.

Re: A useful front-end confetti animation library

#36

You have also Party.js library: https://party.js.org/

Ah, but which one is smaller?

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

#37

Cute animation, but I find it hard to say that the confetti animation is useful

this says more about you than it does about the confetti animation

Twitter uses a similar animation on your profile when it's your birthday. That's one use case and I am sure there are more.

Re: A useful front-end confetti animation library

#38
post #32

This 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?

She said no - but we went on to be great friends still to this day, so I'd say it did work. We joke about it still.
Post reply on HN