Open fenn1ks opened 2 months ago
And so, I decided this way, maybe it will be useful to someone
<dotlottie-player
v-show="lottieLoad"
ref="lottieplayer"
autoplay
loop
mode="normal"
/>
const lottie = await this.$refs.lottieplayer
lottie.addEventListener('ready', () => {
this.lottieLoad = true
})
lottie.load(this.lottieSrc)
How can I access the event in Vue Nuxt when the animation is loaded? I want to make a loading preloader before it is loaded, and after the animation is loaded show it