K
K
Korsia2019-05-11 22:59:42
JavaScript
Korsia, 2019-05-11 22:59:42

Navigation in Owl Carosel disappears when the number of slides is more than three. What could be the problem?

Hello. Faced such a problem. I use it on the OwlCarosel website. When the number of slides is greater than three, any pagination disappears. No arrows, no dots. In the code in the class of these components is disabled.
There is a spinning slider with one slide - there is pagination. There is a slider with four elements. There is no pagination. As soon as I reduce it to the mobile version, and the number of slides is reduced to three, pagination immediately appears. I didn't find an answer on the Internet.
In JS I use something like this:

$(document).ready(function () {
   $(".partners__slider").owlCarousel({
      autoplay: false,
      pagination: true,
      dots: false,
      loop: true,
      responsiveClass: true,
      responsive: {
         0: {
            items: 2,
            nav: true
         },
         660: {
            items: 3,
            nav: true
         },
         1080: {
            items: 6,
            nav: true
         }
      }
   });
});

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