我有一个包含 4 张幻灯片的滑块,应该有一个无限循环,所以当你到达最后一张幻灯片时,它会继续滑动 1,此刻它一直滑回第一张,我认为 animationLoop: true 会这样做,但它不:
var children_slides = $('.flexslider_children').flexslider({
slideshow: false, // Remove the animations
controlNav : false, // Remove the controls
animation: "fade",
directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false)
animationSpeed: 1000
});
$('.flexslider').flexslider({
slideshow: false, // Remove the animations
pauseOnHover : true,
animation: "slide",
itemWidth: 244,
animationLoop:true,
animationSpeed: 1000,
slideshowSpeed: 5000,
initDelay: 3000,
manualControls: ".flex-control-nav li a",
// Call the update_children_slides which itterates through all children slides
'before' : function(slider){ // Hijack the flexslider
update_children_slides(slider.animatingTo);
}
});
有什么想法可能是错的吗?谢谢!