Skip to content

Animation runs repeatedly in interactive mode with loop={false} #71

@zackdotcomputer

Description

@zackdotcomputer

Describe the bug
When set to not loop and play the animation once in a block, the expectation I have is that upon entering the block the animation will play once and then not repeat. Instead, the result is that the animation plays once and then replays again on each incremental interaction.

To Reproduce
Steps to reproduce the behavior:

  1. Set up an animation with the props:
        loop={false}
        interactivity={{
          mode: "scroll",
          actions: [
            { visibility: [0, 0.3], type: "stop", frames: [0] },
            { visibility: [0.3, 1.0], type: "play", frames: [0, 38] }
          ]
        }}
  1. Scroll until 30% visible and observe one playthrough
  2. Scroll until 31% visible and observe a second playthrough

Expected behavior
The expectation would be that the playthrough would happen once while the user was in section 30%-100% and then not play again.

Desktop (please complete the following information):

  • OS: Mac
  • Browser: Chrome
  • Version: 105 (Latest)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions