I am working on a project for a client and he wants to have an Owl Carousel that displays all the slide titles on every slide and they are clickable. To be more clear I have added a picture. Does anyone have a clue how to solve this thing.
Here is the closest I got
var owl = $('.owl-carousel');
owl.owlCarousel({
loop: true,
autoplay: true,
items: 1,
});
owl.on('translated.owl.carousel', function(event) {
var title = $(this).find('.active').find('img').attr('title');
if(title) $('.titles').html(title);
});
<div class="titles">Slide Title</div>
<div class="owl-carousel">
<div class="item">
<img src="https://loremflickr.com/1920/1080/soccer" title="Slide Title 1" alt="Alt 1" />
</div>
<div class="item">
<img src="https://loremflickr.com/1920/1080/cars" title="Slide Title 2" alt="Alt 2" />
</div>
<div class="item">
<img src="https://loremflickr.com/1920/1080/travel" title="Slide Title 3" alt="Alt 3" />
</div>
<div class="item">
<img src="https://loremflickr.com/1920/1080/handball" title="Slide Title 4" alt="Alt 4" />
</div>
</div>