Add a disabled class on owlCarousel's non-clickable arrows. http://kodex.pierros.fr/ressource/owl-disabled-arrows/
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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.