D
D
drtvader2015-11-02 10:58:10
JavaScript
drtvader, 2015-11-02 10:58:10

How to make limited vertical scroll in bxslider?

Kind! How to make the carousel show a limited number of slides?

$(document).ready(function() {
    $('.bxslider').bxSlider({
        mode: 'vertical',
        minSlides: 3,
        maxSlides: 4,
        slideWidth: 170,
        slideMargin: 10,
    });
});

Gives vertical scrolling, but the number of slides is not limited.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
drtvader, 2015-11-02
@drtvader

$(document).ready(function() {
    $('.bxslider').bxSlider({
        mode: 'vertical',
        minSlides: 3,
        maxSlides: 4,
        slideWidth: 170,
        slideMargin: 10,
    });
});

The number of displayed slides can be limited through the .bx-viewport class

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question