Skip to content
Confetti in JS?
Profile icon

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.

You are viewing a single comment. View All
Answered by Whacko [earned 5 cycles]
View Answer
Profile icon

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