title: How can I get the index of prev and next item in OwlCarousel2?
body: <p>How can I get the index of the next and prev items in OwlCarousel for setting background images for the next and prev buttons? I made the basic variant of carousel.</p>
  
  <pre><code>$('.cat-slides').owlCarousel({
      items: 1,
      center: true,
      loop: true,
      autoWidth:true,
  });
  </code></pre>
  
  <p>I need to get index's of prev &amp; next for set the img's as background for prev &amp; next buttons.</p>