When I scroll down the bigger image disappears and the smaller image appears. However when I use this on a smaller screen it's crab so I want it to only work for screens that are above 992px.
I want the function to only be active when people have a resolution of 992px or above. I have no clue how to that.
$(window).resize(function() {
if ($(this).width() > 992) {
$(window).scroll(function() {
if ($(window).scrollTop() < 20) {
$('.navbar-brand').stop(true, true).fadeIn("slow");
$('.image-scroll').css('display', 'None');
} else {
$('.navbar-brand').stop(true, true).fadeOut("slow");
$('.image-scroll').css('display', 'block');
}
});
}
});