Plugin - mousewheel carousel

1 Response

0 votes
responded Apr 26, 2019 by LC Marshal Captain (25,790 points)
// to use
$('.owl-carousel').owlCarousel({
    stagePadding: 50,
    loop:true,
    items: 5,
    dots: false,
    nav:true,
    responsive:{
        0:{
            items:1.2,
            stagePadding: 20
        },
        475: {
            items: 2,
            slideBy: 2, 
            stagePadding: 35
        },
        768:{
            items:3,
            slideBy: 3,
            stagePadding: 35
        },
        992: {
            items: 4,
            slideBy: 4, 
            stagePadding: 65,
            smartSpeed: 100
        },
        1200:{
            items:5,
            slideBy: 5, 
            stagePadding: 35,
            smartSpeed: 100
        }
    }
})

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...