jquery - Flexslider stop at first slide after loop -
i trying flexslider make full loop , stop or pause once gets first slide. here code far:
$(window).load(function(){ $('.flexslider').flexslider({ animation: "slide", animationloop: true, slideshowspeed: 5000, pauseonhover: true, start: function(slider){ $('body').removeclass('loading'); } }); });
try this:
$(window).load(function(){ $('.flexslider').flexslider({ animation: "slide", animationloop: true, slideshowspeed: 5000, pauseonhover: true, start: function(slider){ $('body').removeclass('loading'); }, after: function (slider) { if ((slider.currentslide + 1) == slider.count) { slider.pause(); } } }); });
Comments
Post a Comment