I used the below CSS and JS to accomplish the shrinking logo in nav. It’s not working properly on mobile, so I would like to disable for those sizes. Is there CSS / JS for this?
Site: http://rowlandstaging.rowlandstrategies.com
CSS
@media(min-width: 980px){
a.x-brand.img.resize-logo img {
width: 100px;
transition: all 100ms linear;
}
a.x-brand.img img {
width: 200px;
transition: all 100ms linear;
}
}
JS
jQuery(document).ready(function($){
$(window).scroll(function(){
if ($(this).scrollTop() > 50) {
$(’.x-brand’).addClass(“resize-logo”);
} else {
$(’.x-brand’).removeClass(“resize-logo”);
}
});
});