var confettiElement = document.getElementById('my-canvas'); var confettiSettings = { target: confettiElement }; var confetti = new ConfettiGenerator(confettiSettings); confetti.render();