S
S
sasha_jarvi2019-08-21 15:18:08
css
sasha_jarvi, 2019-08-21 15:18:08

How to fix owlCarousel's abrupt scrolling?

There is a slider consisting of five elements.
7b1a269858.jpg
When you click on one of the slides (Nokia), or rather, at the edges and several times, all elements sharply go to the left, except for Nokia
d51eecd1f1.jpg
. When moving the slider with the mouse, this effect is not observed.
The slider code looks like this

$('.brands-carousel').owlCarousel({
    items: 5,
    navText: ['<img class="brands-nav brands-prev" src="local/templates/phonezone_new/assets/img/icons/carousel-arrow.svg" alt="">', '<img class="brands-nav brands-next" src="local/templates/phonezone_new/assets/img/icons/carousel-arrow.svg" alt="">'],
    responsive : {
      0 : {items: 1 },
      480 : {items: 2 },
      768 : {items: 3 },
      992 : {items: 4 },
      1140 : {items: 5 }
    }
  });

How to fix this error?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question