Answers for "how to change owl nav, how to make custom next-prev button in owl carusol"

0

how to change owl nav, how to make custom next-prev button in owl carusol

var owl = $('.owl-carousel');
owl.owlCarousel();
// Go to the next item
$('.customNextBtn').click(function() {
    owl.trigger('next.owl.carousel');
})
// Go to the previous item
$('.customPrevBtn').click(function() {
    // With optional speed parameter
    // Parameters has to be in square bracket '[]'
    owl.trigger('prev.owl.carousel', [300]);
})
Posted by: Guest on October-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language