Swiper on init event
-
I want to stop autoplay on my Swiper slider on mouseover and start it again on mouseout. What I normally do is to catch the on init event to then apply the methods:
on: { init: function() { jQuery(swiperClass).each(function(elem, target){ var swp = target.swiper; jQuery(this).hover(function() { swp.autoplay.stop(); }, function() { swp.autoplay.start(); }); }); } },
Any possibility to catch the Swiper on init event?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Swiper on init event’ is closed to new replies.