Jquery 猫头鹰旋转木马2-循环中的错误
问题是,当我拖动到instafeed滑块时,instafeed将消失。 例如: 当我拖动时,它会像这样消失: 滑块会隐藏instagram照片。 测试链接: 这是我的代码: Instafeed:Jquery 猫头鹰旋转木马2-循环中的错误,jquery,instagram,instagram-api,owl-carousel,instafeedjs,Jquery,Instagram,Instagram Api,Owl Carousel,Instafeedjs,问题是,当我拖动到instafeed滑块时,instafeed将消失。 例如: 当我拖动时,它会像这样消失: 滑块会隐藏instagram照片。 测试链接: 这是我的代码: Instafeed: var feedslider = new Instafeed({ get: 'user', userId: 240284198, accessToken: '<?php echo $settings['instagram_token']; ?>', limit: 18, sortBy:
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();
PS:我在控制台上没有错误
编辑:
问题是猫头鹰转盘克隆了滑块。
但是instafeed不能复制ID。
现在我需要复制instafeed。如何?当我访问您的链接时,我在页面左侧根本看不到Instafeed。向右拖动时,我看到Instagram滑块。你能详细说明一下吗?当你向右拖动时,你能看到instagram图片吗?查看更新。我的上一次检查显示id=instagram\u幻灯片的div为空。我知道问题所在。滑块没有克隆ID'sSo现在的问题是,如何将instafeed数据附加到类ID
$(function(){
$('#home-slider').owlCarousel({
center: true,
animateOut: 'slideOutDown',
animateIn: 'flipInX',
items:3,
autoWidth:true,
loop:true,
margin:0,
responsive:{600:{items:3}}
});
});