Canvas confetti in one function call.
This is a digital download. No physical item will be shipped.
By purchasing you agree to our Terms of Service. A 30-day refund is available โ see our Refund Policy.
Trigger a full-screen canvas confetti burst with a single function call: confetti(). It's perfect for purchase confirmation pages, onboarding completions, quiz results, or any moment worth celebrating.
The canvas element is created automatically, inserted over your page content, and removed entirely once the animation finishes โ it leaves no trace in your DOM. Particle count, colours, spread angle, gravity, and duration are all configurable via an options object.
The animation uses requestAnimationFrame for smooth, efficient rendering and cleans up the canvas once the last particle settles. Works in all modern browsers. No external dependencies, no canvas pre-setup needed โ just call confetti() and it handles everything.