Drive the engine from app.ticker and call driveGsapWithTicker(app.ticker) so GSAP advances off the Pixi ticker instead of rAF, which freezes on hidden tabs.
Answered
Spinning, speed & stopping
How do I keep the reels animating correctly on a hidden/background tab?
More in Spinning, speed & stopping
- How do I start a spin?
- How do I stop the reels on a result?
- How do I know when a spin has completely finished?
- How do I stagger reel starts so they begin one after another?
- How do I make the reels stop left to right?
- How do I add a turbo / fast-spin mode?
- How do I slam-stop the reels on a second button press?
- How do I boost only the current spin without changing the speed profile?