Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I use events like when animation finishes? #3

Open
DoctorEaker opened this issue Jun 15, 2021 · 5 comments
Open

How do I use events like when animation finishes? #3

DoctorEaker opened this issue Jun 15, 2021 · 5 comments

Comments

@DoctorEaker
Copy link

Is there a specific way to use events?

@sajwanAshish
Copy link

any update on this ?

@ivanempire
Copy link

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

@nikicat
Copy link

nikicat commented Nov 10, 2022

Hi, I've solved this problem.

@mig-hub
Copy link

mig-hub commented Jan 5, 2024

Between this and the way we have to import it in sveltekit to avoid document undefined, it becomes increasingly close to using vanilla js. This defeats the point of having a specific svelte version.

Not sure it is intended because in the code, the author uses dispatch in order to forward the events and make them catchable with on:complete. This is only on sveltekit? or do you get the same with just svelte?

@mig-hub
Copy link

mig-hub commented Jan 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants