catdad/canvas-confetti

🎉 performant confetti animation in the browser

View on GitHub ↗Jump to charts ↓Open shareable report →

Summary Information

Updated 44 minutes ago
Added to GitGenius on September 4th, 2026
Created on January 26th, 2018
Open Issues & Pull Requests: 41 (+0)
GitHub issues: Enabled
Number of forks: 465
Total Stargazers: 12,736 (+0)
Total Subscribers: 36 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 45.7 hours
Mean response time: 19.0 days
90th percentile: 76.8 days
Tracked items: 22

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 21
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 919 days
Stale 30+ days: 21
Stale 90+ days: 18

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • feature request (3)
  • help wanted (3)
  • info needed (2)
  • invalid (1)
  • wontfix (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Canvas Confetti is a JavaScript library that renders performant confetti animations in the browser using canvas.

The library solves the problem of adding celebratory confetti effects to web pages without sacrificing performance. It uses HTML5 canvas to render particle animations efficiently, allowing developers to trigger confetti bursts with a simple function call. The animation can be customized through an options object, and the library returns a Promise that resolves when the animation completes. Multiple calls to the confetti function before the animation finishes will reuse the same canvas element and return the same promise, allowing animations to be layered.

The tool suits any web project that wants to celebrate user actions with visual feedback, from e-commerce checkout pages to game completion screens. It can be installed via NPM for use in build systems like webpack, or included directly in HTML pages via CDN. The library includes built-in support for the prefers-reduced-motion media query through a disableForReducedMotion option, allowing developers to respect user accessibility preferences and disable animations for users who have indicated they prefer reduced motion.

The project maintains active engagement with its community through issue discussions and considers user feedback on design decisions. Development includes ongoing refinement of accessibility features and responsiveness to user concerns about motion preferences on the web.