swiper

Open full view…

Add Class when slider is fully loaded

bmontellimard
Thu, 12 Oct 2017 11:09:00 GMT

Hi, Anybody now how i could add a class to my swiper container when it's fully loade?. My problem is that on load the slider appears for almost 3 seconds with broken styles (simple list of swipes - 3 columns - inline) before the slider init (2 columns - horizontal). I would add a class when it's fully loaded to manage display:block and display:none and so hide the slider when styles are broken. I'm working on an Angular app, Swiper is used into a .directive Thanks.