I've read this:
"Set settings to "unslick" instead of an object to disable slick at a given breakpoint."
What would be nice is to be able to have it unslicked by default, that is, without determining a breakpoint width as I currently only want slick on mobile.
E.g.
responsive: [
{
breakpoint: 1920, // I don't want to specify a value here!
settings: 'unslick'
},
{
breakpoint: 1010,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
Is there a way to do this currently that I've missed?
Thanks for the great plugin.
My workaround for this was to set the option mobileFirst to true, which makes a lot of sense, making this not really an issue. Feel free to close.
mobileFirst: true,
responsive: [
{
breakpoint: 1010,
settings: 'unslick'
}
]
Awesome. I was considering this earlier today. Good work, sir.
It's possible to close your own issues ;)
Thanks.
Only issue with your solution @oliverbenns is on resizing it doesn't slick.
$('.product-slider').slick({
mobileFirst: true,
slidesToShow: 1,
slidesToScroll: 1,
dots: true,
focusOnSelect: false,
arrows: false,
responsive: [
{
breakpoint: 680,
settings: 'unslick'
}
]
});
Most helpful comment
My workaround for this was to set the option mobileFirst to true, which makes a lot of sense, making this not really an issue. Feel free to close.