Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 猫头鹰转盘2淡入效果不工作_Jquery_Slider_Fadein_Owl Carousel - Fatal编程技术网

Jquery 猫头鹰转盘2淡入效果不工作

Jquery 猫头鹰转盘2淡入效果不工作,jquery,slider,fadein,owl-carousel,Jquery,Slider,Fadein,Owl Carousel,我目前正在尝试使用带淡入淡出效果的猫头鹰转盘2,但它显示了默认的滑动效果。我如何修复它 这是我的密码 function owlWrapperWidth( selector ) { $(selector).each(function(){ $(this).find('.owl-carousel').outerWidth( $(this).closest( selector ).innerWidth() ); }); } owlWrapperWidth( '.owl-wrapp

我目前正在尝试使用带淡入淡出效果的猫头鹰转盘2,但它显示了默认的滑动效果。我如何修复它

这是我的密码

  function owlWrapperWidth( selector ) {
  $(selector).each(function(){
    $(this).find('.owl-carousel').outerWidth( $(this).closest( selector ).innerWidth() );
  });
}

owlWrapperWidth( '.owl-wrapper' );
$( window ).resize(function() {
  owlWrapperWidth( $('.owl-wrapper') );
});
$'.owl carousel'.owl carousel{ 动画衰减:“衰减”

    animateIn: 'fadeIn',
  nav:true,  





    loop: true,
    responsive: {
      0: {
        items: 1
      },
      600: {
        items: 2
      },     
      1000: {
        items: 3,
        slideBy:3,
      }
    }
  });
我添加了animateIn:“fadeIn”,但没有成功


谢谢

Owl动画功能仅适用于单件行李传送带一次仅显示一张幻灯片:

动画功能仅适用于一个项目,并且仅适用于支持透视属性的浏览器

请看这里:

下面是我当前使用fadeIn和fadeOut的一个滑块实现,所有人都认为您的代码对于核心owl来说都是正确的,而且效果很好

$('.index-gallery .owlcarousel').owlCarousel({
  themeClass: 'owl-fullscreen owl-nonav white owl-loaded',
  autoplay:true,
  autoplayTimeout: 4000,
  items:1, // items to display in slider
  //margin:0, // margin(px) on item.
  //LOOP? - IF ONLY ONE SLIDE SEE: https://github.com/smashingboxes/OwlCarousel2/issues/548
  loop:true, // Inifnity loop. Duplicate last and first items to get loop illusion. 
  navRewind:true, // Go to first/last.
  nav:true, // left and right arrows
  autoHeight: true,
  navContainerClass: 'owl-buttons',
  dotsClass: 'owl-pagination',
  dotClass: 'owl-page',
  animateOut: 'fadeOut',
  animateIn: 'fadeIn',
  autoplayHoverPause:true, //false
  lazyLoad: false, // IMG need special markup class="lazyOwl" and data-src="url_to_img" or/and data-src-retina="url_to_highres_img"
  dots:false // true
});
您可能希望查看此线程以获取更多建议/解决方案/想法:


干得好,谢谢