I use owl carousel plugin, can't find how to let navigation vertical align center, with option autoHeight.
http://codepen.io/anon/pen/jJAHL
I tried like below, but it only get last height.
$(this_gallery).owlCarousel({
singleItem: true,
autoHeight : true,
navigation:true,
// autoPlay : 2000,
stopOnHover : true,
afterAction: function() {
var center_height = $(this_gallery).find('.owl-wrapper-outer').height();
console.log(center_height);
// $(this_gallery).find('.owl-buttons').css('top', center_height);
}
});
a bit late maybe but this worked well for me and might help others:
Change css for prev and next buttons
Instead of giving
top
position
in the pixel give it in thepercentage
like following: