Owl Carousel 2 beta , jump to a specific slide

Yazan Rawashdeh picture Yazan Rawashdeh · Sep 14, 2014 · Viewed 43.7k times · Source

I have implemented the Owl Carousel 2 in my website , I want to be able to jump to specific slide by using the Jumbpto helper provided like so ,

$('.btnJump').click(function(){
    $('#myCarousel').trigger('owl.jumpTo', 3)
  });

but it seems that the beta version doesn't have owl.jumpTo helper.

anyhelp ? at least for finding the documentation for the beta version

Answer

Bababob picture Bababob · Oct 6, 2014

Try:

$('.btnJump').click(function(){
    $('#myCarousel').trigger('to.owl.carousel', 3)
  });

Documentation can be found here: https://owlcarousel2.github.io/OwlCarousel2/docs/api-events.html