$(".owl-carousel").owlCarousel({
margin:10,
dots:false,
nav:true,
responsive:{
0:{
items:1
},
600:{
items:3
},
1000:{
items:5
}
}
});
上面是我的猫头鹰旋转木马。现在,我需要单击的猫头鹰项目应该是中心。请任何我
在初始化旋转木马之前,我已经在旋转木马内部设置to.owl.carousel
内部的
data-position
属性。然后,我将此属性用作div
please检查结果:Https://codepen.io/glebkema/details/dwxzza/
to.owl.carousel
.owl-item > div {
cursor: pointer;
margin: 9px 12px;
transition: margin 0.4s ease;
}
.owl-item.center > div {
cursor: auto;
margin: 0;
}