How to tie the animation to the flipping of the slide to the Swiper?

Use Swiper slider on the home screen, slide to the full width and height of the window. I need the transition to another slide took place after a small animation at the bottom (loading bar from left to right after which switch to another slide).

I just did the animation and threw it on the scroll at the time fit the animations to the time of the slide. But if people begin to flip through the slides manually, then everything is natural breaks (well, not just this) is Shorter than the spike method.

So the question is how to tie the animation directly to the slider?
June 3rd 19 at 20:24
0 answer

Find more questions by tags JavaScriptCSS