svelte-lottie-player icon indicating copy to clipboard operation
svelte-lottie-player copied to clipboard

Not able to listen to any events

Open yaeszlo opened this issue 3 years ago • 5 comments

How do I listen to events when using this library? The standard Svelte way doesn't work:

<LottiePlayer
		on:frame={console.log}
		on:stop={console.log}
		bind:this={player}
		src={Logo}
		autoplay={true}
		loop={true}
		height={120}
		width={120}
	/>

yaeszlo avatar Feb 05 '22 14:02 yaeszlo

any update on this ?

sajwanAshish avatar Jul 19 '22 13:07 sajwanAshish

Hey just checking in on this, need this in our project too?

ivanempire avatar Sep 23 '22 05:09 ivanempire

@yaeszlo Same here. Are you using svelte kit as well? Any update on this?

mig-hub avatar Jan 04 '24 16:01 mig-hub

The funny thing is that if you use the vanilla lottie-player component, then the on:complete notation works fine.

mig-hub avatar Jan 05 '24 13:01 mig-hub

isn't going to be fixed?

diegoulloao avatar May 29 '24 03:05 diegoulloao