canvas-confetti
freeFire performant confetti from any point on the page with one function call.

Try these
Sonner
Opinionated toast component with stacking, swipe to dismiss and promise toasts; ports for Vue, Svelte, Solid and Angular.
Lenis
Smooth, inertia-based wheel scrolling that keeps native scroll position, sticky and anchors working.
Glisse
A faithful web implementation of Apple's Liquid Glass: refracting buttons, switches, tab bars and menus.
Liquid Glass React
A single <LiquidGlass> wrapper that adds refraction, chromatic aberration and elastic hover to any content.
For your agent
Install
npm i canvas-confetti && npm i -D @types/canvas-confettiUse it for
- a genuine milestone: first project created, payment completed, course finished
- a celebration in onboarding or a game: a streak hit, a level up, a goal reached
Skip it when
- routine actions (saving, sending a message): celebration loses meaning fast
- corporate, luxury, brutalist or minimal products where it clashes with the tone
- error-adjacent flows or anything serious (finance transfers, medical, deletion)
What's inside16 free
- confetti()
- confetti.create
- confetti.reset
- confetti.shapeFromPath
- confetti.shapeFromText
- Reduced motion (disableForReducedMotion)
- Basic Cannon
- Random Direction
- Realistic Look
- Fireworks
- Stars
- Snow
- School Pride
- Custom Shapes
- Emoji
- Custom Canvas
Facts
- Frameworks
- vanilla, react, vue, svelte, solid, angular
- Styling
- unstyled
- Weight
- small
- Accessibility
- ok
- Maturity
- established
- License
- ISC
- Price
- Free
Pairs with
import confetti from 'canvas-confetti'
confetti({ particleCount: 80, spread: 70, origin: { y: 0.7 }, disableForReducedMotion: true })https://www.kirilv.com/canvas-confetti/
Loading website