You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the destroy key in a media query to disable the effect on mobile devices, but I just can't get it right. Can someone provide the correct code for a media query to disable on certain size and re-enable on another size?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
if ($(window).width() < 480) {
alert('Less than 480');
// do something else instead of tilt or change options
}
else {
alert('More than 480');
// run the tilt
}
I'm trying to use the destroy key in a media query to disable the effect on mobile devices, but I just can't get it right. Can someone provide the correct code for a media query to disable on certain size and re-enable on another size?
Thanks in advance!
The text was updated successfully, but these errors were encountered: