我试图让Flexslider完成一个完整的循环,然后一旦它回到第一张幻灯片就停止或暂停.到目前为止,这是我的代码: $(window).load(function(){ $('.flexslider').flexslider({ animation: "slide", animationLo
$(window).load(function(){ $('.flexslider').flexslider({ animation: "slide", animationLoop: true, slideshowSpeed: 5000, pauseOnHover: true, start: function(slider){ $('body').removeClass('loading'); } }); });试试这个:
$(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(); } } }); });