我想要实现的是让我的猫头鹰旋转木马无限循环。在最后一个图像滑块从右到左恢复到第一个图像之后,但我希望我的图像不要恢复回来,这意味着在最后一个图像之后,第一个图像将从左到右出现。
这是我的代码
$(document).ready(function() {
$('.five').owlCarousel({
loop:true,
margin:10,
autoPlay:true,
nav:true,
rewindNav:false,
responsive:{
0:{
items:1
},
600:{
items:3
},
1000:{
items:4
}
}
})
});
当您使用响应式类时,它总是会覆盖顶部选项。
因此,您所需要做的就是向您的响应式项目添加
loop
选项。
responsive:{
0:{
items:1,
loop:true
},
600:{
items:3,
loop:true
},
1000:{
items:4,
loop:true
}
}
Asking for help, clarification, or responding to other answers.
Making statements based on opinion; back them up with references or personal experience. Asking for help, clarification, or responding to other answers.
Making statements based on opinion; back them up with references or personal experience. Asking for help, clarification, or responding to other answers.
Making statements based on opinion; back them up with references or personal experience. Asking for help, clarification, or responding to other answers.
Making statements based on opinion; back them up with references or personal experience.