(Web) Pause animation when offscreen?

I’ve embedded a Rive animation on my site (using iframe). Wondering if there’s a simple way I can pause the state machine/animation when the viewer scrolls and the animation is offscreen?

Currently when a user scrolls past, waits a few seconds, then scrolls back, the animation seems to speed through any “missed” portions, if that makes sense. I’m noticing it when I have a state machine with multiple timelines, and enough time passes that the animation passes from one timeline to another (while offscreen). Instead, once it’s back in view, it seems to fast-forward through all missed portions until it gets back to where it should be, time-wise.

It makes for a slightly jarring experience, especially when 15+ seconds have passed. I’d rather have it pause and resume when it’s back in the viewport, or just play smoothly without showing the frames that were hidden.