admin管理员组文章数量:1305202
I want to show the list of all the available images underneath the carousel so that way when someone clicks on one of the images it bees the main photo in the carousel... Not quite sure how to do this. tried looking into it but cant find anything.
I want to show the list of all the available images underneath the carousel so that way when someone clicks on one of the images it bees the main photo in the carousel... Not quite sure how to do this. tried looking into it but cant find anything.
Share Improve this question asked Jul 3, 2016 at 16:49 ShaneRibzShaneRibz 1072 gold badges3 silver badges7 bronze badges1 Answer
Reset to default 6There's a good open source support available for this. You can try this one: https://github./gijsroge/OwlCarousel2-Thumbs
Add it with the default owl carousel plugin and enable from your code:
$(document).ready(function(){
$('.owl-carousel').owlCarousel({
thumbs: true,
thumbsPrerendered: true
});
});
Add thumbnails (link slider and thumbnails with data-slider-id attribute)
<div class="owl-carousel" data-slider-id="1">
<div>Your Content</div>
<div>Your Content</div>
<div>Your Content</div>
<div>Your Content</div>
</div>
<div class="owl-thumbs" data-slider-id="1">
<button class="owl-thumb-item">slide 1</button>
<button class="owl-thumb-item">slide 2</button>
<button class="owl-thumb-item">slide 3</button>
<button class="owl-thumb-item">slide 4</button>
</div>
本文标签: javascriptOwl CarouselHow to show all the images underneath the main carouselStack Overflow
版权声明:本文标题:javascript - Owl Carousel - How to show all the images underneath the main carousel? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741789070a2397554.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论