materialize
materialize copied to clipboard
Waves effect don't working inside owl-carousel plugin
I know this is not a real issue but maybe someone had previusly had the same problem and can help me. It will be great if you would help me or give me a hint about and maybe it can also help improving this awesome framework.
I have use the floating button with waves for the Owl carousel jquery plugin navigation buttons, and for some reason the waves effect doesn't work. I supouse that something in the owl carousel css or js is interfering but I can't find it.
This is my code:
("#intro-slider").owlCarousel({
navigation : true, // Show next and prev buttons
navigationText: ['<a class="btn-floating btn-black btn-large waves-effect waves-light animated" data-animation="zoomIn"><i class="mdi-hardware-keyboard-arrow-left"></i></a>','<a class="btn-floating btn-black btn-large waves-effect waves-light animated" data-animation="zoomIn"><i class="mdi-hardware-keyboard-arrow-right"></i></a>'],
slideSpeed : 300,
paginationSpeed : 400,
singleItem:true,
autoPlay : 5000,
});
Thanks in advance!
Owl Carousel is probably capturing the click event so it can handle touch/mouse gestures.
Solution is
$("#intro-slider").owlCarousel({
mouseDrag: false,
touchDrag: false,
});