Reinitialize Slick js after successful ajax call

前端 未结 11 1749
傲寒
傲寒 2021-02-01 16:52

I am using Slick for a carousel implementation and everything works fine when the pages loads.What I am trying to achieve is that when i make an Ajax call to retrieve new data I

11条回答
  •  终归单人心
    2021-02-01 17:12

    Here we go, guys! It helped me

    $('.slick-slider').not('.slick-initialized').slick({
       infinite: false,
       slidesToShow: 1,
       slidesToScroll: 1,
       dots: true,
       arrows: false,
       touchThreshold: 9
    });
    

提交回复
热议问题