Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable on Mobile #54

Open
j4media opened this issue Aug 2, 2018 · 1 comment
Open

Disable on Mobile #54

j4media opened this issue Aug 2, 2018 · 1 comment

Comments

@j4media
Copy link

j4media commented Aug 2, 2018

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!

@ShawnRamseyMedia
Copy link

this will do it -

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
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants