canvas-confetti icon indicating copy to clipboard operation
canvas-confetti copied to clipboard

🎉 performant confetti animation in the browser

Results 45 canvas-confetti issues
Sort by recently updated
recently updated
newest added

Thanks for making `canvas-confetti` it's awesome! We (effectively) have the following code: ```javascript const confettiFrequency = 40; const animationEnd = Date.now() + 1000; const confettiOptions = {/* ... */}; let...

info needed

```javascript function setupCanvas(canvas) { // Get the device pixel ratio, falling back to 1. var dpr = window.devicePixelRatio || 1; // Get the size of the canvas in CSS pixels....

feature request
good first issue

Thank you awsome library. It save my day. Just want to know is it possible to hv shapes ( square or circle) to hv diff back/front colors when rotates. (Eg:...

feature request

Hi, I'm getting this error with version `1.5.1` `Uncaught TypeError: Cannot read properties of undefined (reading 'reset')` Would you mind looking into it? Thanks! ![Shot 2022-06-14 at 18 30 29@2x](https://user-images.githubusercontent.com/10360816/173705981-3e060b7e-43ac-4f6a-9d71-9495bacfc35b.png)

info needed

Is there a function that received the canvas or its context as a parameter and allows to draw custom confetti particles? Similar to https://github.com/alampros/react-confetti#drawshape= ? If there's no function, could...

popular UI libs are using z-index in range of 1k-2k for dialogs, toolbars etc. Current zindex default is `100`, why not set to max? `Number.MAX_SAFE_INTEGER` or `2147483647` to be "safe",...

![2dba049b-ab0e-4504-acab-22196978863e](https://user-images.githubusercontent.com/8287891/138864091-865d8f2a-6430-467c-8dc0-4ba941d115f0.jpeg)

info needed

This change allows to add an emoji to the shapes array like shapes: ['emoji:💸'] It doesn't look like it's harder to render than circles or squares to me. No shape-changing...

In the case of using this library for snow i found that i needed to control the wobble effect. This exposes those two options but keeps the reasonable defaults :)