tsparticles / vue3

Vue.js tsParticles official component
MIT License
125 stars 8 forks source link

How can I handle firework sounds in vue? #77

Open tiny-solver opened 3 months ago

tiny-solver commented 3 months ago

I'm working with Vue 3, and I want to add firework sounds whenever a firework explodes. I'm curious about how to implement this. I want to use a callback when the firework explodes, but I can't find a way to do this.

Here’s my code snippet and configuration.

<vue-particles v-if="showParticles" id="tsparticles" @particles-loaded="particlesLoaded" url="/particles.json" />

particles.json

Ackermiam commented 2 months ago

Hey ! I can't make it works in my Vue 3.4 project, can you show me your package dependencies, and your main.ts ? And anything which is related to tsparticles library ? Thanks you :D

GNUXDAR commented 2 months ago

I'm trying to add custom confetti effects to my Vuejs 3 application. I've installed a tsparticles library, but I'm unable to find specific instructions in the documentation on how to customize the confetti display. Can you assist me with this?