1
I am trying to remove a CSS class by Javascript when the screen decreases
Only the event I’m wearing is the scroll, which is for mouse scrolling. Then every time the screen decreases need to scroll the mouse to function.
Does anyone know an own event for resolution in Javascript?
jQuery(function () {
jQuery(window).scroll(function () {
if (jQuery(this).width() < 1200) {
$("#divtexto").removeClass("col-6");
$("#textMaratona").removeClass("col-6");
}else{
$("#divtexto").addClass("col-6");
$("#textMaratona").addClass("col-6");
}
});
});
vlw msm kara.. worked here kkkk muit obg...
– Davi Alves