I have two slides going. I was using OWL 1 and it worked great. I would like the infinite loop, so moved to OWL 2.
The following code works great. The slides stay in sync, but autoplay never starts. I have to drag the slides or show the navigation and click next/prev.
Hoping the answer is pretty obvious to someone with more experience.
$(document).ready(function() {
var carousel_1 = $('#the_carousel'),
carousel_2 = $('#the_carousel_content');
carousel_2.on('change.owl.carousel', function(event) {
carousel_1.trigger('to.owl.carousel', [event.item.index,100,true]);
});
carousel_1.owlCarousel({
items:1,
loop:true,
autoPlay: true,
autoplayTimeout: 100,
slideBy: 1,
autoplaySpeed: 100,
rewindNav: false
});
carousel_2.owlCarousel({
items:1,
loop:true,
autoPlay: false,
autoplaySpeed: 100,
autoplayTimeout: 100,
nav:false,
slideBy: 1,
rewindNav: false
});
});
</script>
Thanks!