我有一个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);
}
});
任何想法都可能出错? 谢谢!
答案 0 :(得分:1)
如果删除字符串
itemWidth:244,
animationLoop将起作用