There is a slider with a counter, when the lower progress bar is turned on, the counter stops working. onTranslated: counter, onTranslated: moved
Either one works or the other how to combine the function, something I do not catch up)) thanks
$(".top-bg .slides-block .owl-carousel").owlCarousel({ items: 1, animateOut: 'fadeOut', dots: false, nav: false, mouseDrag: false, smartSpeed: 400, autoplay: true, autoplayTimeout: 4000, onInitialized : counter, onTranslated : counter, afterInit : progressBar, onTranslated : moved, startDragging : pauseOnDragging }); function counter(event) { var element = event.target; // DOM element, in this example .owl-carousel var items = event.item.count; // Number of items var item = event.item.index + 1; // Position of the current item $('.top-bg .slides-block #counter').html("<span class='item'>"+item+"</span> <span>/</span> <span class='items'>"+items+"</span>"); function moved(){ clearTimeout(tick); start(); }