# canvas-confetti

> Performant confetti animations in the browser on a canvas

Source: https://talira.ai/catalog/canvas-confetti-dhh69eyw
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [frontend / animation](https://talira.ai/categories/frontend/animation)
- Platforms: web[^1]
- Licence: ISC[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Kiril Vatev](https://talira.ai/orgs/catdad.md)

canvas-confetti draws confetti animations in the browser on a canvas, with one function call. Options set the particle count, spread, angle, colours, gravity, origin and more, and the built-in shapes are squares, circles and stars; custom shapes come from SVG paths or text, including emoji confetti. `confetti.create` draws on a canvas of your own, and a `disableForReducedMotion` option respects users who prefer less motion. It installs from npm as a client-side component for a bundler, or loads from a CDN as a `confetti` function on `window`. It doesn't run in Node.

## Links

- Website: https://catdad.github.io/canvas-confetti/
- GitHub: https://github.com/catdad/canvas-confetti

## Problems it solves

- show a confetti burst when a user completes a purchase
- emoji confetti animation on my website
- a lightweight celebration animation in JavaScript without a framework

## Features

- confetti bursts with options for count, spread, angle, colours and gravity
- square, circle and star shapes, plus custom SVG-path and emoji shapes
- draws on your own canvas with confetti.create
- a reduced-motion option

## Limitations

- It's a client-side component that doesn't run in Node.[^1]

## Trust

Overall: 0.35 out of 1.
Signals: maintenance 0.06, adoption 0.82, momentum 0.63, community 0.53, backing 0.30, extensibility 0.00.

- latest release 1.9.4 13 months ago
- 12.9k GitHub stars
- 20 contributors
- accepts sponsorship (Github, Custom, Custom)
- backed by Kiril Vatev

Warnings:

- last commit 13 months ago

## Alternatives

- [Anime.js](https://talira.ai/catalog/anime-js-3nbvzgty.md): A fast, modular JavaScript animation engine for CSS, SVG, DOM and JavaScript objects
- [GSAP](https://talira.ai/catalog/gsap-a4dmtm3g.md): A wildly robust JavaScript animation library built for professionals
- [lottie-web](https://talira.ai/catalog/lottie-web-at1r1eae.md): Airbnb's JavaScript player that renders After Effects animations exported as Lottie JSON in the browser

## Sources

[^1]: https://github.com/catdad/canvas-confetti/blob/master/README.md (checked 30 Nov 2026)
[^2]: https://github.com/catdad/canvas-confetti/blob/master/LICENSE (checked 30 Nov 2026)
