0

我有一个包含 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);
  }   
}); 

有什么想法可能是错的吗?谢谢!

4

1 回答 1

1

如果你删除字符串

项目宽度:244,

动画循环将起作用

于 2013-10-23T04:47:58.787 回答