-
Notifications
You must be signed in to change notification settings - Fork 281
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
Emit 'complete' event when an animation finishes #28
Comments
yeah |
Any progress on this? |
you can use addEventListener, just like: <template>
<Lottie :options="defaultOptions" @animCreated="handleAnimation"></Lottie>
</template>
<script>
export default {
methods:{
onAnimComplete() {
// do something
},
handleAnimation(ami) {
this.ami = ami
this.ami.addEventListener('complete', this.onAnimComplete)
},
}
}
</script>
`
more events see this link: https://github.com/airbnb/lottie-web |
Try this out
You can find more animation instances methods and events at AirBnb Lottie Web |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be helpful if a
Lottie
component emitted acomplete
event when the animation completed a loopThe text was updated successfully, but these errors were encountered: