Answer the question
In order to leave comments, you need to log in
OWl - how to hide the navigation with a certain number of elements?
var owlItem = $("b-owl__el-item");
$(owlItem).each(function(){
if($(this).length < 6) {
$(".b-owl__navigation__el-next").css('display', 'none');
$(".b-owl__navigation__el-prev").css('display', 'none');
}
else {
$(".b-owl__navigation__el-next").css('display', '');
$(".b-owl__navigation__el-prev").css('display', '');
}
console.log(owlItem.length);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question