Add custom buttons on Slick Carousel

前端 未结 11 693
迷失自我
迷失自我 2020-12-23 14:23

How do I apply custom prev and next buttons to slick carousel? I have tried a background image on the .slick-prev and .slick-next css classes. I ha

11条回答
  •  孤城傲影
    2020-12-23 14:55

    its very easy. Use the bellow code, Its works for me. Here I have used fontawesome icon but you can use anything as image or any other Icon's code.

    $(document).ready(function(){
        $('.slider').slick({
            autoplay:true,
            arrows: true,
            prevArrow:"",
            nextArrow:""
        });
    });
    

提交回复
热议问题