$(document).ready(function() { $('.single-item').slick({ dots: true, infinite: true, speed: 300, slidestoshow: 1, slidestoscroll: 1 }); $('.multiple-items').slick({ dots: true, infinite: true, speed: 300, slidestoshow: 3, slidestoscroll: 3 }); $('.one-time').slick({ dots: true, infinite: false, placeholders: false, speed: 300, slidestoshow: 5, touchmove: false, slidestoscroll: 1 }); $('.uneven').slick({ dots: true, infinite: true, speed: 300, slidestoshow: 4, slidestoscroll: 4 }); $('.responsive').slick({ dots: true, infinite: false, speed: 300, slidestoshow: 4, slidestoscroll: 4, responsive: [{ breakpoint: 1024, settings: { slidestoshow: 3, slidestoscroll: 3, infinite: true, dots: true } }, { breakpoint: 600, settings: { slidestoshow: 2, slidestoscroll: 2 } }, { breakpoint: 480, settings: { slidestoshow: 1, slidestoscroll: 1 } }] }); $('.center').slick({ centermode: true, centerpadding: '60px', slidestoshow: 3, responsive: [{ breakpoint: 768, settings: { arrows: false, centermode: true, centerpadding: '40px', slidestoshow: 3 } }, { breakpoint: 480, settings: { arrows: false, centermode: true, centerpadding: '40px', slidestoshow: 1 } }] }); $('.lazy').slick({ lazyload: 'ondemand', slidestoshow: 3, slidestoscroll: 1 }); $('.autoplay').slick({ dots: true, infinite: true, speed: 300, slidestoshow: 3, slidestoscroll: 1, autoplay: true, autoplayspeed: 2000 }); $('.fade').slick({ dots: true, infinite: true, speed: 500, fade: true, slide: 'div', cssease: 'linear' }); $('.add-remove').slick({ dots: true, slidestoshow: 3, slidestoscroll: 3 }); var slideindex = 1; $('.js-add-slide').on('click', function() { slideindex++; $('.add-remove').slickadd('