You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have made an infinite carousel for a project I am working on, however I have noticed that the hoverpause feature does not fully work the way I want it to. My hope was to allow the user to instantly pause the carousel when hovering over an image, however because I have given the carousel an animation duration, the carousel will carry out the full animation before pausing. Is this supposed to be the case or is there a workaround somebody knows? Below is my code + html layout of my carousel.
I have made an infinite carousel for a project I am working on, however I have noticed that the hoverpause feature does not fully work the way I want it to. My hope was to allow the user to instantly pause the carousel when hovering over an image, however because I have given the carousel an animation duration, the carousel will carry out the full animation before pausing. Is this supposed to be the case or is there a workaround somebody knows? Below is my code + html layout of my carousel.
const glide = new Glide(sliderElement, { type: 'carousel', perView: 4, autoplay: true, bound: true, hoverpause: true, animationDuration: 4000, animationTimingFunc: 'linear', breakpoints: { 1440: { perView: 4 }, 1024: { perView: 3 }, 768: { perView: 2 }, 425: { perView: 2, gap: 75 }, 320: { perView: 2, gap: 100 } } }); glide.mount(); }); }
The text was updated successfully, but these errors were encountered: