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
Oldest comments (21)
I was just thinking: what if we added text in the emojis array?
You will get something like this 😄
That's awesome! You could just make it a new feature, and you don't have to change a thing!
But what if you add numbers?
What if you add words? It would be fun to see lorem ipsum flying around!
Woo! That's really nice!
thank you!
Я просто многократно нажал на кнопку, чтобы проверить, что призойдет, и в итоге браузер Via сломался=)
Hi! can you please share error from browser console?
Or is it just stopped working without any error?
Я не проверял на ошибки. Если это очень важно, я могу повторить это
is Via only mobile browser? I don't think I can debug this(
I checked on mobile Safari and mobile Android Browser, it was working OK
Thank you for creating this! I'll be looking into this soon and share my experience.
Thanks! Will be waiting for your feedback
Good work! Thank you for sharing the library. I'll try to implement it on my next project.
I didn't need this until I saw it.
I was about to make something like this. Thank you for saving my time.
Lol I got this idea yesterday now it's a real thing. Nice work 🔥
😂 amazing
thanks!
Love it!
can we control the speed