Stop Lottie autoplay and fix .play() issue

Hey, I’ve just started trying to use Lottie animations. But I’m running into a couple issues I hope someone could help me with

  1. Some times I don’t want the animation to auto play upon loading, but I can’ seem to find a way to stop it

  2. For some reason, the first time I try to play it (either using onMouseOver or onClick), it doesn’t play. But after the first click doing nothing, it plays as it should when mousing over/clicking it. Anyone know why it’s acting that way? I “solved it” on a page by running onViewportEnter on the section it’s in, and run stop() on the lottie files… but not really a good soulution

1 Like

I am currently facing the same issue. Have you figured out how to fix it?