lottie-player icon indicating copy to clipboard operation
lottie-player copied to clipboard

Lottie animation not playing until I switch to that browser tab

Open AniketBhadane opened this issue 11 months ago • 0 comments

I'm using lottie animation on a website and opening it on chrome brwoser. When I open a new browser tab and change to another tab before the animation plays, then animation does not play. It starts playing only when I go back to that tab. Is there a way to make the animation continue to play till its complete, even if the browser tab is not in focus?

<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script> 
<lottie-player id="exploding-bird" src="./logo-lottie.json" background="transparent" speed="1" style="width: 1000px;" autoplay></lottie-player>

AniketBhadane avatar Mar 05 '24 05:03 AniketBhadane