Continuity test if statment
I have a if statement that looks something like this
if ($(window).width() < 799) {
$('.element').css({'display': 'none'});}
else{ $('.element').css({'display': 'block'});}
I would like to continuity test the statement so that when the window is
resized it would go back to normal (or the other way around). I have tried
setInterval however that does not seem to work nor does it seem like the
right thing to do. I'am aware that I can use css media quires for some of
this but some of the code not show can not be done in css.
No comments:
Post a Comment