Micro Snippet

Confetti Burst

Canvas confetti in one function call.

Confetti Burst preview
Confetti Burst
$5
Canvas confetti in one function call.
๐Ÿ”’Secure checkout via Stripe
๐Ÿ“งYou will receive a download link by email after successful payment
๐Ÿ”„Lifetime updates included
โ†ฉ๏ธ30-day refund policy

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.

About this product

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.

Features

  • One-line API: confetti()
  • Canvas auto-created and removed
  • Customisable colours and particle count
  • Auto-cleanup after animation

Files included

  • confetti.js
  • confetti.min.js
  • demo/index.html
  • README.md
Licence Single-site ยท Personal & commercial use ยท No redistribution or resale