Answer the question
In order to leave comments, you need to log in
How to assign class disabled to button when non-circular owl carousel?
How to give a disabled class to a button with a non-circular owl carousel if there is no next slide?
$('.next').click(function() {
owll.trigger('next.owl.carousel');
});
$('.prev').click(function() {
owll.trigger('prev.owl.carousel');
});
Answer the question
In order to leave comments, you need to log in
So you specify loop: false in the script for the carousel and that's it. Buttons will be assigned the disabled class. Here is an
upd example: a solution for your layout
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question