#671·glide

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

Author: bknoCreated Oct 6, 2023Updated Jul 11, 2025

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.