S
S
Sergey Miller2018-06-15 20:07:43
JavaScript
Sergey Miller, 2018-06-15 20:07:43

How to change the hover slide on a certain element on the site in Owl carousel?

Let's say we have the most common slider:

<div class="owl-carousel owl-theme" id="portfolio-hat-slider">
<div class="item"><h1>1</h1></div>
<div class="item"><h2>2</h2></div>
<div class="item"><h3>3</h3></div>
<div class="item"><h4>4</h4></div>
</div>


Somewhere on the site there is an element with id="elem"

So that when you hover over the " elem " element in the slider, the second slide (h2) becomes active (rewinds to the desired one) - how can this be coded?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dymok, 2018-06-15
@blackseabreathe

Events?
https://owlcarousel2.github.io/OwlCarousel2/docs/a...
Example

D
doweb, 2018-06-15
@kostya_dev

Like one of the
Doc's options on the carousel

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question