Ask coding questions

← Back to all posts
Confetti in JS?
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
UltimatePython
Comments
hotnewtop
Whacko

I made this repl.

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