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

Animation loops not limited to specified count #51

Closed
alexanderbartl opened this issue Jan 31, 2022 · 2 comments
Closed

Animation loops not limited to specified count #51

alexanderbartl opened this issue Jan 31, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@alexanderbartl
Copy link

alexanderbartl commented Jan 31, 2022

Describe the bug
After upgrading to version 2.2.1 of lottie-react, limiting the animation to a fixed number of loops does not work.

To Reproduce

  1. Install v2.2.1 of lottie-react (e.g. in a fresh Create-React-App project)

  2. Add the Lottie component:

     <Lottie animationData={data} loop={2} />
    
  3. Open in browser, the animation will run indefinitely, as if loop={true} was set.

Expected behavior
The animation should play for the specified amount of loops.

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Chromium
  • Version: 2.2.1

Additional context
The problem was not present with version 2.1.0. It feels like this might be related to #48.

@Gamote
Copy link
Owner

Gamote commented Feb 1, 2022

Hey @alexanderbartl, thank you for reporting. It will be fixed in the next release. 👍🏼

@Gamote Gamote self-assigned this Feb 3, 2022
@Gamote Gamote added the bug Something isn't working label Jun 22, 2022
@Gamote Gamote mentioned this issue Jun 23, 2022
@Gamote
Copy link
Owner

Gamote commented Jun 23, 2022

This issue was fixed in v2.3.1.

@Gamote Gamote closed this as completed Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants