I have this code:
jQuery(document).ready(function($){
$('.navbar').css("background-color", "transparent");
$(window).scroll(function(){
if ($(this).scrollTop() > 600) {
$('.navbar').css("background-color",
"rgba(255,255,255,0.9)").css("transition","0.3s ease-in-out ");
$('.navbar a').css("color", "black");
}
else {
$('.navbar').css("background-color",
"transparent").css("transition","0.3s ease-in-out ");
$('.navbar a').css("color", "white");
}
});
});
and I could use some help with what code do I need to add for this code to run only on desktops (width min. 992px). I don't want this effect on mobile or tablet so I will appreciate any of your ideas!
Thank you!