An Interest In:
Web News this Week
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
- March 26, 2024
June 29, 2021 11:01 am GMT
Original Link: https://dev.to/loonywizard/js-confetti-library-with-emojis-2152
JS Confetti library with emojis
Hi everyone!
Happy to announce, that my library js-confetti now supports emojis!
Please look at README for instructions for Installation & Usage
All you need is to provide emojis
array to addConfetti
method:
import JSConfetti from 'js-confetti'const jsConfetti = new JSConfetti()// different emojisjsConfetti.addConfetti({ emojis: ['', '', '', '', '', ''],})// confetti from only unicorn emojisjsConfetti.addConfetti({ emojis: [''],})// different arguments in .addConfettijsConfetti.addConfetti({ emojis: ['', ''], emojiSize: 100, confettiNumber: 30,})
I will be happy if this will be useful for anybody!
Feel free to add Issues for feature-requests / bugs
Original Link: https://dev.to/loonywizard/js-confetti-library-with-emojis-2152
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