R
R
Roman Blinov2021-03-21 12:17:49
css
Roman Blinov, 2021-03-21 12:17:49

How to highlight hotspots in OwlCarousel?

Good day. I am using the OwlCarousel slider. I made my custom points there, but I don't know how to make the point of the active slide stand out. Thanks in advance

$('.two-slider').owlCarousel({
      items: 1,
      loop: false,
      dots: true,
      dotsContainer: '.partners-slider-dots_wrapper'
    });
$('.slider-dot').click(function(){
 $('.two-slider').trigger('to.owl.carousel', [$(this).index(), 300]);  
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EvgeniySaschenko, 2021-03-21
@plinetus

Through CSS, the class active is added to the active point

<button role="button" class="owl-dot active"><span></span></button>

.owl-dot.active {
  background-color: red;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question