BxSlider displayes last slide as first slide

前端 未结 8 997
孤城傲影
孤城傲影 2021-02-02 17:19

I have created 4 sliders. Initially all 4 are hidden (display:none) so I have used this code to display the relevant slider on click of its respective category.

The slid

8条回答
  •  天涯浪人
    2021-02-02 18:01

    Fast solution:

    .bx-clone{
       display: none !important;
    }
    

    If you don't want to lose the infiniteLoop animation:

       onSliderLoad: function() {
          $("YOUR_SLIDER_SELECTOR").css(
             "-webkit-transform", 
             "translate3d(-" + YOUR_SLIDER_WIDTH + "px, 0, 0)"
          );
        }
    

提交回复
热议问题