Owl Carousel 2 - 循环上的Bug

时间:2015-10-08 14:10:42

标签: jquery instagram instagram-api owl-carousel instafeedjs

问题是当我拖动不安全的滑块时, instafeed 消失了。 例如:

before drag. on the left -> instafeed

当我拖动时,它会像这样消失:

enter image description here

滑块可隐藏Instagram照片。 enter image description here

测试链接: http://mindvelopers.com/test/test.php

这是我的代码:

Instafeed:

var feedslider = new Instafeed({

get: 'user',
userId: 240284198,
accessToken: '<?php echo $settings['instagram_token']; ?>',
limit: 18,
sortBy: 'most-recent',
target: 'instagram_slider',
after: function () {
    var images = $("#instagram_slider").find('a');
    $.each(images, function(index, image) {
        var delay = (index * 75) + 'ms';
        $(image).css('-webkit-animation-delay', delay);
        $(image).css('-moz-animation-delay', delay);
        $(image).css('-ms-animation-delay', delay);
        $(image).css('-o-animation-delay', delay);
        $(image).css('animation-delay', delay);
        $(image).addClass('animated flipInX');
    });
},

});

feedslider.run();

OWL CAROUSEL:

$(function(){

$('#home-slider').owlCarousel({
center: true,
animateOut: 'slideOutDown',
animateIn: 'flipInX',
items:3,
autoWidth:true,
loop:true,
margin:0,
responsive:{600:{items:3}}     
});

});

PS:我在控制台上没有错误。

编辑: 问题是猫头鹰旋转木马克隆了滑块。 但是,不安全的不能复制ID。 现在我需要复制instafeed。怎么样?

0 个答案:

没有答案