I've got a function for my Owl Carousel which is adding a class "turn-on" when current slider is visible, and removing when it's not.
function syncPosition(el){
  var current = this.currentItem;      
  this.owl.owlItems.removeClass('turn-on');
  setTimeout( function() {
  $(this).removeClass("turn-on");
  }, 2000);
  $(this.owl.owlItems[this.owl.currentItem]).addClass('turn-on');
  }
Now I need to add 2 second delay for removeClass. I've tried with set-timeout, delay but I am doing something wrong because it doesn't work.
Check this fiddle
Could somebody help me with this issue?
 
    