lottie-player
lottie-player copied to clipboard
Lottie animation not playing until I switch to that browser tab
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>