Slick: How i can use vertical carousel with Up/Down arrow navigation

Created on 21 May 2014  路  2Comments  路  Source: kenwheeler/slick

The current carousel is horizontal with left/right arrow. I would like to use carousel vertically with top and bottom arrow navigation. I couldn't see any solution inside the library/js. Please let me know if anyone has solution.

Most helpful comment

@designersuresh Hey! I've stumbled upon this recently. The easiest way to do this is to assign the nextArrow and prevArrow having a definition for your slider like this:
$('.slider').slick({
slidesToShow: 3,
slidesToScroll: 1,
arrows: true,
vertical: true,
prevArrow: $('.top-arrow'),
nextArrow: $('.bottom-arrow')
});

All 2 comments

Set vertical mode to true in the options, and then position your next/prev arrows relatively with margin: auto and top and bottom values so they are above and below the slider.

@designersuresh Hey! I've stumbled upon this recently. The easiest way to do this is to assign the nextArrow and prevArrow having a definition for your slider like this:
$('.slider').slick({
slidesToShow: 3,
slidesToScroll: 1,
arrows: true,
vertical: true,
prevArrow: $('.top-arrow'),
nextArrow: $('.bottom-arrow')
});

Was this page helpful?
0 / 5 - 0 ratings