Answer the question
In order to leave comments, you need to log in
Is it possible to hide the owl.carousel navigation depending on the current slide?
So it goes.
There are a lot of different manipulations going on with the carousel, so you have to write a lot of handwritten script to hide the navigation (for example, the next slide button if the current slide is the last; or both buttons if there is only one slide)
Does owl.carousel have a separate function for this?
Answer the question
In order to leave comments, you need to log in
If the loop mode is disabled, then the buttons are assigned the disabled class when there is nothing to scroll (the last slide or less than the displayed number).
It follows that you only need to write two lines in styles:
.owl-prev.disabled, .owl-next.disabled {
display: none;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question