: Copy the small snippet of JavaScript provided by the editor into your website’s code. For example, to trigger confetti on a button click: javascript
The platform allows you to fine-tune several visual parameters to match your project's aesthetic: https://confettiscripts.com/v/JBUs7gDntoA
: High-quality confetti scripts, such as those found on ConfettiPage , automatically disable animations if a user has the "Reduce Motion" setting enabled on their device. : Copy the small snippet of JavaScript provided
: The scripts can be set to activate on specific user actions, such as clicking a button , hovering, or successfully completing a form. How to Implement a Script How to Implement a Script : Modify the
: Modify the initial velocity , spread angle , and gravity to determine how the confetti bursts and falls.
document.getElementById('myButton').onclick = () => { confetti({ particleCount: 150, spread: 70, origin: { y: 0.6 } }); }; Use code with caution. Copied to clipboard