I am currently working on a slider where one dot grows and another one follows suit. However, I have encountered a strange issue. I set the interval
option to 2000ms for the slider and the CSS timing to 2000ms.
div.bubble {
height: 100px;
border-radius: 1em;
width: 100px;
animation: vars 2000ms infinite ease-in-out; //here the timing is the same as the interval
}
Upon loading the page, the animation and slider initially appear synced, but as the animation continues, a slight lag starts to show in the slideshow. It seems like either the animation is too fast or the slideshow is too fast.
https://jsfiddle.net/pas14r8g/9/
I have provided a fiddle link for better clarity of the situation. Despite trying Swiper, Flickity, and Splide sliders, all seem to exhibit the same issue.
The bug is quite subtle, not noticeable within the first 4 loops, but it gradually appears and worsens.
What I have observed is that the slider consistently lags by 3ms or 4ms. Adjusting the value of the interval
option did not resolve this perfectly.