1.0.1 • Published 3 years ago
more-ember-confetti v1.0.1
More Ember Confetti
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.
Compatibility
- Ember.js v3.20 or above
- Ember CLI v3.20 or above
- Node.js v12 or above
Installation
ember install more-ember-confettiUsage
You can use this helper like you would with any other EmberJS helper.
{{confetti}}Use the custom options
intervalNumber (default: 2000): The time it will take for the confetti to fire againcontinuousBoolean (default: true): The confitte will continue to pop when this is true.originXNumber (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 theoriginobject needed by thecanvas-confettiAPI.originYNumber (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 theoriginobject needed by thecanvas-confettiAPI.
🎉 Use any of the standard APIs
particleCount, angle, spread, startVelocity, decay, gravity, drift, ticks, colors, shapes, scalar, zIndex &
disableForReducedMotion
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.