ostinred ostinred - 5 months ago 45
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?


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