Answer the question
In order to leave comments, you need to log in
How to set a different number of slides for different screens?
In a slider based on the slick plugin
plugin, the
number of simultaneously displayed slides is described by
$('.multiple-items').slick({
slidesToShow: 3,
});
Answer the question
In order to leave comments, you need to log in
I'm certainly not a wang, but I think that this documentation block can help -
$('.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
}
}
]
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question