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

Animation speeds up when returning to tab; way to pause when changing tab? #671

Open
bkno opened this issue Oct 6, 2023 · 0 comments
Open

Comments

@bkno
Copy link

bkno commented Oct 6, 2023

I have autoplay enabled and it works perfectly, however if I leave the page open and return the animation speeds up - as if it is trying to catch up with where it would have been if I had stayed on the page.

Has anyone got a solution for this?

This is my code:

new Glide('#logo-carousel', {
  animationDuration: 4000,
  animationTimingFunc: 'linear',
  autoplay: 1,
  gap: 30,
  type: 'carousel',
  hoverpause: false,
  perView: 8,
  }
}).mount();

My usage is a slow moving non-interactive logo carousel.

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