Closed lifenautjoe closed 1 year ago
Hi @lifenautjoe !
At the present moment, there is no way to clear a canvas from confetties Canvas is cleared when all confetties fall down
Do you need such a method? like
const confetti = new JSConfetti()
confetti.addConfetti()
// ...
// --->
confetti.clearCanvas()
Hi, confetti.clearCanvas()
would be useful. Essentially, there just need to be an id on the canvas and then it can easily be removed from the active DOM.
Hi @loonywizard !
Thanks for the nice library!
Question I couldn't find anywhere, how do I clean up the created canvas? Is this done automatically?
Thanks!