Answer the question
In order to leave comments, you need to log in
How to choose start position of owl-carousel in wordpress?
I put owl-carousel on the site, everything works, the plugin suits, but there is one thing. I have a carousel on my blog and it is necessary that when the page is opened, it is the last added slides that are visible, and not the first ones. While I'm digging through the js files, I can't find anything. Can anyone advise?
Answer the question
In order to leave comments, you need to log in
There is a method owl.jumpTo(x)
$("#owl-demo").owlCarousel({
navigation : true,
slideSpeed : 300,
paginationSpeed : 400,
singleItem : true
});
var lenCarousel = $("#owl-demo").find('.owl-item').length;
var owl = $("#owl-demo").data('owlCarousel');
owl.jumpTo(lenCarousel -1);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question