![Cover image for [JS] How to create beautiful and realistic confetti animation with tsParticles](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0mk8xb6bzdsuuv9c1kpd.png)
Starting from version 1.30.0 tsParticles has new options to create beautiful and realistic confetti animations with every supported particle shape....
For further actions, you may consider blocking this person and/or reporting abuse
For further actions, you may consider blocking this person and/or reporting abuse
Awesome effects! Thanks for sharing
This is great! Is it possible to have the animation stop after running for 30 seconds?
You can set a timer and stop the animation
Thank you! Unfortunately I am very far from being a developer :P Any chance you could show how to include the timer inside the code? :)
Thank you. Where exactly do I place this in the code? Sorry for my lack of knowledge to coding.
This is a replacement of the sample seen in the article. You have to keep the previous options, since I've cut them in the sample for readability.
Hmm 🤔 Still not able to make it work. Sorry for being a noob. I have tried placing this code in top and bottom of the js:
codepen.io/jon-erik-josephsen-the-...
Ok you just missed the async function: codepen.io/matteobruni/pen/qBxvjLK
Or you can achieve something a little bit different using emitters life options: codepen.io/matteobruni/pen/eYVXRxR
Perfect! Thank you very much! 😁
👍 ty