VueJs confetti example #2262
-
Thanks, for this great library, but I want to trigger the animation on button click only, but did not get any solution for that related to VueJs Here are the reference links but I don't know to integrate them in VueJs code, so please help me This one exactly I wanted to create using tsparticles, but unable to integrate it |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
https://codesandbox.io/s/infallible-joliot-9znu5?file=/src/App.vue Here's the Vue.js 2.x sample, it works also in Vue.js 3.x in the same way. You cannot use the Vue.js component when you want to trigger particles on some event, but you can still use the core library like in standard javascript. |
Beta Was this translation helpful? Give feedback.
https://codesandbox.io/s/infallible-joliot-9znu5?file=/src/App.vue
Here's the Vue.js 2.x sample, it works also in Vue.js 3.x in the same way.
You cannot use the Vue.js component when you want to trigger particles on some event, but you can still use the core library like in standard javascript.