This content originally appeared on DEV Community and was authored by Vladimir Nikitin
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 emojis
jsConfetti.addConfetti({
emojis: ['?', '⚡️', '?', '✨', '?', '?'],
})
// confetti from only unicorn emojis
jsConfetti.addConfetti({
emojis: ['?'],
})
// different arguments in .addConfetti
jsConfetti.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
This content originally appeared on DEV Community and was authored by Vladimir Nikitin
Vladimir Nikitin | Sciencx (2021-06-29T11:01:24+00:00) JS Confetti library with emojis ⚡️ ?. Retrieved from https://www.scien.cx/2021/06/29/js-confetti-library-with-emojis-%e2%9a%a1%ef%b8%8f-%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.