How to remove class with media queries
$(window).resize(function(){
If($(window).width()<500){
$('.fade').removeClass('fade');
}
});
How to remove class with media queries
You don't. Instead, you define new rules that apply to the class which do the styling you want done. Media queries can't add or remove classes to elements, they merely change what rules apply to elements.