3748 posts
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Won a competition
+9 more
pezflash says

Hi. Sorry, missed your later replies. Now i see you have disabled the parallax.
As said, this should work (for a plain direct usage):

var windowWidth = screen.width;

Then, to make it dynamic (to allow browser rescaling) you should use window object resize (jquery):

$(window).resize(function() {
    windowWidth = screen.width;
});

This is a quick workaround, but again, it should work.

;)

by
by
by
by
by
by