react-canvas-confetti
Advanced tools
Comparing version
@@ -51,3 +51,2 @@ "use strict"; | ||
height: "100%", | ||
zIndex: -1, | ||
top: 0, | ||
@@ -54,0 +53,0 @@ left: 0, |
{ | ||
"name": "react-canvas-confetti", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "React component for canvas-confetti library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -90,3 +90,3 @@ # [react-canvas-confetti](https://ulitcos.github.io/react-canvas-confetti/) | ||
| className | string | value to set className to canvas element | | ||
| style | CSSProperties | value to set style to canvas element | | ||
| style | CSSProperties | value to set style to canvas element. If `style` and `className` are not passed, the default styles will be set | | ||
| globalOptions | [TGlobalOptions](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/canvas-confetti/index.d.ts#L126) | global animation settings that cannot be changed after initialization ([details](https://github.com/catdad/canvas-confetti?tab=readme-ov-file#confetticreatecanvas-globaloptions--function)) | | ||
@@ -123,2 +123,4 @@ | onInit | (params: {confetti: [TCanvasConfettiInstance](#canvas-confetti-instance)}) => void | the callback is called when the component is mounted on the page and allows you to access confetti instance ([details](https://github.com/catdad/canvas-confetti?tab=readme-ov-file#confettioptions-object--promisenull)) for manual animation creation | | ||
[Custom Animation](https://codesandbox.io/p/devbox/custom-animation-react-canvas-confetti-v2-2v8wkx) | ||
[Custom Animation](https://codesandbox.io/p/devbox/custom-animation-react-canvas-confetti-v2-ff42f6) | ||
[Custom Stylization](https://codesandbox.io/p/devbox/custom-stylization-react-canvas-confetti-v2-nmjfc8) |
Sorry, the diff of this file is not supported yet
46709
0.16%125
1.63%1087
-0.18%