Answer the question
In order to leave comments, you need to log in
Breakpoint not working in slick-slider, what to do?
It is in the chrome
viewport that is written
$('.novelty-wrap').slick({
infinity: true,
slidesToShow: 3,
slidesToScroll: 1,
autoplaySpeed: 3000,
arrows: true,
responsive: [
{
breakpoint: 1530,
settings: {
slidesToShow: 3,
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 1,
centerMode: true,
centerPadding: '90px'
}
}
],
prevArrow: '.novelty-prev-arrow',
nextArrow: '.novelty-next-arrow',
});
Answer the question
In order to leave comments, you need to log in
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0 ">
User -scalable=0 is what heals chrome. Such a tag is registered at the office. slider site.
Firstly, what is the difference from the original slidesToShow: 3, and the fact that the breakpoint is 1530, and there and there the value is 3, so apparently this breakpoint is not needed or you forgot to change the value. As for the breakpoint, in general, I think you are aware that if you have a breakpoint of 1530, then it will work from 1529px and below, and accordingly if the breakpoint is 600, then from 599px and below.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question