Confetti component can be used by directly adding dependency to target application and then adding confetti weblock on the respective page.
Once confetti web block is added on the page (it will include script with all the required function to start or stop confetti), one can invoke below functions on particular client event to start and stop.
confetti.start()
confetti.stop()
If you wish to start and stop confetti falling for 5-6 second
function start() {
setTimeout(function() {
}, 1000); // 1000 is time that after 1 second start the confetti ( 1000 = 1 sec)
}
function stop() {
}, 5000); // 5000 is time that after 5 second stop the confetti ( 5000 = 5 sec)
start();
stop();