Skip to content

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.

@chadkouse chadkouse closed this Oct 22, 2025
@chadkouse chadkouse reopened this Oct 22, 2025
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}

2 participants