I have a class that I add to navbar with jQuery. It works perfectly fine on android phones, tablets, desktop but not on iphones. I have no clue on what might be the issue. Actually the class is added except the part background-color?
Here is the code:
$(window).scroll(function(){
var vlera = $(this).scrollTop();
if(vlera > 0){
$('.navbar').addClass('n-bg');
}
else
{
$('.navbar').removeClass('n-bg');
}
})