mifi / react-lottie-player

Fully declarative React Lottie player
MIT License
494 stars 52 forks source link

The function to execute when the animation has finished #107

Closed JihooDev closed 9 months ago

JihooDev commented 9 months ago

Is it possible to perform another action after the animation has ended? I used onAnimationEnd, but it's not working.

mifi commented 9 months ago

I think using lottie-web directly would be better suited for such a custom action

JihooDev commented 9 months ago

@mifi Thank you! I resolved the issue by calling the onComplete event!