Rive animation gets stuck in intro state when scrolled out of view

I’m not fully sure how this was set up inside Rive, so I may be missing some details.

From what I understand, the animation is meant to zoom out after a short intro and then loop. I’m assuming there are two sequences: an intro with larger tiles that zooms out, followed by a loop with smaller tiles that animates left and right continuously. The animation is triggered when the Rive element becomes visible on the visitor’s screen. However, if the user scrolls past it before the intro animation finishes, the animation gets stuck in the large-tile state—the zoom-out never happens, and the large tiles loop infinitely, which looks broken. I’m not sure whether this issue is coming from Rive itself, the animation file, or our code integration.

Enregistrement de l’écran 2025-11-05 à 15.03.44.mov