full-width

Responsive breakpoints not working for slick slider

左心房为你撑大大i 提交于 2020-08-04 05:09:13
问题 I have implemented slick slider which works fine without resizing the browser. But when I resize the browser to 1024 then the responsive breakpoint settings doesn't work. Jquery-- $('.slider').slick({ centerMode: true, slidesToShow: 1, slidesToScroll: 1, dots: true, infinite: true, cssEase: 'linear', variableWidth: true, variableHeight: true, mobileFirst: true, responsive: [{ breakpoint: 1024, settings: { slidesToShow: 4, slidesToScroll: 1, centerMode: false } }] }); Demo -- https://jsfiddle