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

Allow playOnce for interactivity action #111

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chadkouse
Copy link

This mimicks the playOnce animation mode in lottie-interactivity

https://docs.lottiefiles.com/lottie-interactivity/animation-modes#animate-when-visible-and-play-once

Fixes #71

I tried to write a test to cover it but I couldn't get the existing tests to work. However it seems like you could take the test for play and just run the scroll action more than once and ensure that play was only called once.

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

Successfully merging this pull request may close these issues.

Animation runs repeatedly in interactive mode with loop={false}
1 participant