I have slick carousel scrolling horizontally in desktop view but I need same carousel scroll vertical in mobile view I have added javascript what I used, thanks in advance.
<script>
$(document).ready(function(){
$('.carousel-blog').slick({
speed: 800,
slidesToShow: 2.6,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 6000,
dots:true,
centerMode: true,
responsive: [{
breakpoint: 1024,
settings: {
slidesToShow: 2,
slidesToScroll: 1,
// centerMode: true,
}
}, {
breakpoint: 800,
settings: {
slidesToShow: 2,
slidesToScroll: 2,
dots: true,
infinite: true,
}
}, {
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
dots: true,
infinite: true,
autoplay: true,
autoplaySpeed: 2000,
}
}]
});
});
</script>