Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
June 29, 2021 11:01 am GMT

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,})

You can see demo here

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:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To