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!
Top comments (0)