
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
owl.carousel2.thumbs
Advanced tools
Enables thumbnail support for Owl Carousel 2.0
grab the latest release and slam it behind the default owl carousel plugin.
$(document).ready(function(){
$('.owl-carousel').owlCarousel({
thumbs: true
});
});
$(document).ready(function(){
$('.owl-carousel').owlCarousel({
thumbs: true,
thumbsPrerendered: true
});
});
<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>
<div class="owl-carousel">
<div data-thumb='Content of your thumbnail (can be anything)'> Your Content </div>
<div data-thumb='Content of your thumbnail (can be anything)'> Your Content </div>
<div data-thumb='Content of your thumbnail (can be anything)'> Your Content </div>
<div data-thumb='Content of your thumbnail (can be anything)'> Your Content </div>
</div>
$(document).ready(function(){
$('.owl-carousel').owlCarousel({
// Enable thumbnails
thumbs: true,
// When only using images in your slide (like the demo) use this option to dynamicly create thumbnails without using the attribute data-thumb.
thumbImage: false,
// Enable this if you have pre-rendered thumbnails in your html instead of letting this plugin generate them. This is recommended as it will prevent FOUC
thumbsPrerendered: true,
// Class that will be used on the thumbnail container
thumbContainerClass: 'owl-thumbs',
// Class that will be used on the thumbnail item's
thumbItemClass: 'owl-thumb-item'
});
});
npm install owl.carousel2.thumbs
bower install owl.carousel2.thumbs
</> with <3 in Belgium by @GijsRoge
FAQs
Enables thumbnail support for Owl Carousel 2.0
The npm package owl.carousel2.thumbs receives a total of 276 weekly downloads. As such, owl.carousel2.thumbs popularity was classified as not popular.
We found that owl.carousel2.thumbs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.