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
Top 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!
I didn't need this until I saw it.
Love it!
Π― ΠΏΡΠΎΡΡΠΎ ΠΌΠ½ΠΎΠ³ΠΎΠΊΡΠ°ΡΠ½ΠΎ Π½Π°ΠΆΠ°Π» Π½Π° ΠΊΠ½ΠΎΠΏΠΊΡ, ΡΡΠΎΠ±Ρ ΠΏΡΠΎΠ²Π΅ΡΠΈΡΡ, ΡΡΠΎ ΠΏΡΠΈΠ·ΠΎΠΉΠ΄Π΅Ρ, ΠΈ Π² ΠΈΡΠΎΠ³Π΅ Π±ΡΠ°ΡΠ·Π΅Ρ 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
I was about to make something like this. Thank you for saving my time.
Good work! Thank you for sharing the library. I'll try to implement it on my next project.
Thank you for creating this! I'll be looking into this soon and share my experience.
Thanks! Will be waiting for your feedback
Woo! That's really nice!
thank you!
π amazing
thanks!
can we control the speed