canvas-confetti
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
// canvas-confetti v1.0.2 built on 2019-12-27T17:58:48.293Z | ||
// canvas-confetti v1.0.3 built on 2020-01-03T00:35:01.711Z | ||
!(function (window, module) { | ||
@@ -281,2 +281,3 @@ // source content | ||
wobbleY: 0, | ||
gravity: 3, | ||
ovalScalar: 0.6 | ||
@@ -288,3 +289,3 @@ }; | ||
fetti.x += Math.cos(fetti.angle2D) * fetti.velocity; | ||
fetti.y += Math.sin(fetti.angle2D) * fetti.velocity + 3; // + gravity | ||
fetti.y += Math.sin(fetti.angle2D) * fetti.velocity + fetti.gravity; | ||
fetti.wobble += 0.1; | ||
@@ -291,0 +292,0 @@ fetti.velocity *= fetti.decay; |
{ | ||
"name": "canvas-confetti", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "performant confetti animation in the browser", | ||
@@ -47,4 +47,12 @@ "main": "src/confetti.js", | ||
"confetti", | ||
"animation" | ||
] | ||
"animation", | ||
"burst", | ||
"fireworks", | ||
"snow", | ||
"particles" | ||
], | ||
"funding": { | ||
"type": "donate", | ||
"url": "https://www.paypal.me/kirilvatev" | ||
} | ||
} |
@@ -33,3 +33,3 @@ # 🎊 canvas confetti 🎊 | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.0.2/dist/confetti.browser.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.0.3/dist/confetti.browser.min.js"></script> | ||
``` | ||
@@ -36,0 +36,0 @@ |
@@ -278,2 +278,3 @@ (function main(global, module, isWorker, workerSize) { | ||
wobbleY: 0, | ||
gravity: 3, | ||
ovalScalar: 0.6 | ||
@@ -285,3 +286,3 @@ }; | ||
fetti.x += Math.cos(fetti.angle2D) * fetti.velocity; | ||
fetti.y += Math.sin(fetti.angle2D) * fetti.velocity + 3; // + gravity | ||
fetti.y += Math.sin(fetti.angle2D) * fetti.velocity + fetti.gravity; | ||
fetti.wobble += 0.1; | ||
@@ -288,0 +289,0 @@ fetti.velocity *= fetti.decay; |
Sorry, the diff of this file is not supported yet
53431
0.37%1329
0.23%