$(function(){ $('.closebtn').click(function(){ $('.soBox').css('display','none') }) $('.searchbtn').click(function () { $('.soBox').css('display','flex') }) $(".row-a1 .l_box .m-list1").slick({ dots: true, infinite: true, autoplay: true, autoplaySpeed: 5000, arrows: false, useCSS: true, speed: 600, slide: "li", slidesToShow: 1, slidesToScroll: 1, }); $(".row-a3 .ml .m-list2").slick({ dots: false, infinite: true, autoplay: true, autoplaySpeed: 4000, arrows: true, useCSS: true, speed: 600, slide: "li", slidesToShow: 1, slidesToScroll: 1, }); })