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

stop animation at start doesn't work #43

Open
reynaldysaputra opened this issue Jan 14, 2021 · 1 comment
Open

stop animation at start doesn't work #43

reynaldysaputra opened this issue Jan 14, 2021 · 1 comment

Comments

@reynaldysaputra
Copy link

Hi there,

I've tried some animations in react-lottie-web but why does autoplay keep running animations? I have set it to false but the animation doesn't stop early, how do I stop the animation before starting the action?

@Rassibassi
Copy link

Try to also set isStopped to true. Had the same issue, but that solved it.

 <Lottie
  isStopped={true}
  options={{
    animationData: data,
    loop: false,
    autoplay: false
  }}
/>

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

2 participants