Skip to content
Add a disabled class on owlCarousel's non-clickable arrows. http://kodex.pierros.fr/ressource/owl-disabled-arrows/
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
owlDisabledArrows.js
owlDisabledArrows.min.js

README.md

owlDisabledArrows

Add a disabled class on owlCarousel's arrows, when we can't go to next or go to previous slide.

Usage

var $carousel = $('#slider');

$carousel.owlDisabledArrows({
	disabledClass : 'owl-disabled'
});

$carousel.owlCarousel({
	// owlCarousel config
});

The Owl's documentation says the initialized.owl.carousel event must be attached before Owl Carousel initialization, so the call to owlDisabledArrows too.

You can’t perform that action at this time.