【发布时间】:2023-03-15 17:57:01
【问题描述】:
我创建了一个轮播,它显示 6 个徽标,然后前进,一个。在 Bootply 上,一切正常:http://www.bootply.com/RkOFbrTp6F
当我将它添加到网页中时,请参见此处:http://url.kybernaut.cz/1e,它可以工作,但那里的运动更加动态,就像整行被移动并再次向前加载一样,而不是 Bootply 上缓慢而平静的运动。
我该如何解决?代码看起来相同。这是jquery代码:
jQuery("#sponzoriCarousel").carousel({
interval: 4000
});
jQuery('.carousel .item').each(function(){
var next = jQuery(this).next();
if (!next.length) {
next = jQuery(this).siblings(':first');
}
next.children(':first-child').clone().appendTo(jQuery(this));
for (var i=0;i<4;i++) {
next=next.next();
if (!next.length) {
next = jQuery(this).siblings(':first');
}
next.children(':first-child').clone().appendTo(jQuery(this));
}
});
提前非常感谢!
【问题讨论】:
标签: twitter-bootstrap carousel