This addon provides you with an Ember helper that implements the canvas-confetti package
MIT License
This addon provides you with an Ember helper that implements the canvas-confetti package. So you can call the confetti
-helper in your template and pass along any attributes specified in the API.
ember install more-ember-confetti
You can use this helper like you would with any other EmberJS helper.
{{confetti}}
interval
Number (default: 2000): The time it will take for the confetti to fire againcontinuous
Boolean (default: true): The confitte will continue to pop when this is true.originX
Number (default:0.5): The x position on the page, with 0 being the left edge and 1 being the right edge. This is used to construct the origin
object needed by the canvas-confetti
API.originY
Number (default:0.5): The y position on the page, with 0 being the top edge and 1 being the bottom edge. This is used to construct the origin
object needed by the canvas-confetti
API.particleCount
, angle
, spread
, startVelocity
, decay
, gravity
, drift
, ticks
, colors
, shapes
, scalar
, zIndex
&
disableForReducedMotion
See the Contributing guide for details.
This project is licensed under the MIT License.