setTimeout(function () {
$('.page-1').addClass('active');
setTimeout(function () {
$('.page-2').addClass('active');
$('.page-2').css({ "z-index": "2" });
..........
}, 3500);
}, 3500);
var owl=$("#reviews")
var count = 0;
owl.owlCarousel({
items: 5,
nav: false,
dots: false,
loop: true,
center: false,
margin: 30,
autoWidth: false,
autoplay: false,
rewind: false,
slideTransition: 'linear',
autoplaySpeed: 6000,
smartSpeed: 6000,
onChanged: callBack,
responsive: {
1200:{
items: 5
}
}
})
function callBack(event) {
if(count ===0) {
owl.trigger('stop.owl.autoplay')
setTimeout(function() { owl.trigger('play.owl.autoplay',[3500])});
count++
}
if (count >0) {
owl.trigger('play.owl.autoplay',[6000])
}
}