Is there that this can be achieved ie so that the slides don't adjust in width depending on viewport size: My example is here:
http://machinas.com/wip/hugoboss/responsive-template/v4/
And the code is as follows:
$('.main-slider').slick({
centerMode: true,
centerPadding: '0px',
slidesToShow: 3,
dots: true,
speed: 1200,
slidesToScroll: 1,
infinite: true,
customPaging: function(slick,index) {
return $('.thumbnails').eq(index).find('img').prop('outerHTML');
},
responsive: [
{
breakpoint: 640,
settings: {
arrows: false,
dots: true,
centerMode: false,
slidesToShow: 1,
customPaging: function(slick,index) {
return '<button type="button" data-role="none">' + (index + 1) + '</button>';
}
}
}
]
});
Fully responsive. Scales with its container. Uses CSS3 when available. Fully functional when not.
Make a choice: https://cdnjs.com/libraries/slick-carousel. https://www.jsdelivr.com/projects/jquery.slick. Afterwards, simply insert the CSS as links into the HTML page head and the JavaScript just before your closing body tag.
You can use the variable width setting. This tells slick to let your css do the work:
variableWidth: true
If you set variableWidth to true, make sure you do not use the slidesToShow setting, or the slider will not advance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With