1.0.0
ππ The module is now at 1.0.0! ππ
- Whenever possible,
confetti
will use a web worker for rendering animation so that it is not doing heavy work on the main thread, and also to allow you to do heavy blocking work without affecting the animation. The defaultconfetti()
method will use workers for rendering by default whenever possible, and fall back to main thread rendering when it is not supported. If you are creating a custom canvas or would like to turn this off because you enjoy blocking the main thread, see the newuseWorker
option onconfetti.create()
- see #83 - Fixes a bug that caused animation to speed up on high refresh rate monitors - see #90
- [Internal] Prefixed versions of
requestAnimationFrame
will no longer be used. There is a fallback that will be used on all browsers that do not support the officialrequestAnimationFrame
. This should not affect usage of the module's API, though it may change some characteristics about the animation on older browsers - see #86