Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lottie animation not playing until I switch to that browser tab #241

Open
AniketBhadane opened this issue Mar 5, 2024 · 0 comments
Open

Comments

@AniketBhadane
Copy link

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant