ostinred ostinred - 1 year ago 94
Javascript Question

How to disable parallax wagerfield on small resolution?

I use this parallax, but can't disable it on mobile?

I found some methods like this:

scene = $('#scene').parallax();

But it didn't work. Can anybody help?

Answer Source

I would rather go in different direction. Instead of making something disable on small screens make it working only on larger devices:

if ($(window).width() > 640) { //set up breaking point

    $('#scene').parallax(); // this or any other code you need

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download