猫头鹰轮播随机顺序并保持响应

问题描述

我有一个具有响应设置的Owl Slider,但是一旦添加代码随机幻灯片,似乎所有的滑块设置都被设置为认值-导航可见性,响应性等。

(function ($) {
// Random
  var owl = $('.intro-slider');
  owl.owlCarousel({
      onInitialize : function(element){
          owl.children().sort(function(){
              return Math.round(Math.random()) - 0.5;
          }).each(function(){
              $(this).appendTo(owl);
          });
      },});

  
  // Intro SLider
  $('.intro-slider').owlCarousel({


    center: false,loop: true,stagePadding: 0,margin: 0,smartSpeed: 1000,autoplay: true,autoplayHoverPause: false,dots: false,nav: false,responsive: {
      0: {
        items: 3
      },768: {
        items: 1
      },1000: {
        items: 1
      }
    }

  });
}```

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)