March 17, 2021 04:28 pm GMT
Original Link: https://dev.to/loonywizard/js-confetti-40dn
Zero-config JS Confetti library
js-confetti is a lightweight zero-config open-source JavaScript library for confetti without any dependencies
GitHub: https://github.com/loonywizard/js-confetti
Usage
Install library via yarn or npm
yarn add js-confetti
Initialize instance of JSConfetti class and call addConfetti method
import JSConfetti from 'js-confetti'const jsConfetti = new JSConfetti()jsConfetti.addConfetti()
Thats it!
Original Link: https://dev.to/loonywizard/js-confetti-40dn
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To