Skip to content
Sign upLog in
← Back to Community

Confetti in JS?

Profile icon
UltimatePython

I'm coding a cool game and when the user wins there is confetti. The language is HTML/CSS/JS. However, I suck at JS, and I don't know how to create a JS confetti effect. Everything I searched up on Google seemed to be in Node.js, so I'm asking you guys here, I really need help, so thanks so much.

Answered by Whacko [earned 5 cycles]
View Answer
Voters
Profile icon
UltimatePython
Comments
hotnewtop
Profile icon
Whacko

I made this repl.

Profile icon
TheDNAHero

Create a bunch of different color divs that are only shown when the game ends and they go to a bunch of random places on the top, with an animation that makes them fall and then disappear