This content originally appeared on DEV Community and was authored by Vladimir Nikitin
Hi everyone!
Wanted to share, that my open-source library JSConfetti is now could be downloaded from CDN:
<script src="https://cdn.jsdelivr.net/npm/js-confetti@latest/dist/js-confetti.browser.js"></script>
After that, JSConfetti
class could be accessed as global variable, and you can fire confetti by calling method addConfetti()
on JSConfetti class instance
const jsConfetti = new JSConfetti()
jsConfetti.addConfetti()
JSConfetti works without any config, but could be configurable, check out documentation on GitHub
Links: GitHub | NPM | Library Website | CodeSandbox Playground
This content originally appeared on DEV Community and was authored by Vladimir Nikitin
Vladimir Nikitin | Sciencx (2021-06-25T15:29:52+00:00) JSConfetti is now could be downloaded from CDN ?. Retrieved from https://www.scien.cx/2021/06/25/jsconfetti-is-now-could-be-downloaded-from-cdn-%f0%9f%8e%89/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.