fabcity / newfabcity

Fab City website
https://old.fab.city
Apache License 2.0
1 stars 4 forks source link

Skrollr.js for parallax effects not working well when manually resizing browser #4

Open mqvlm opened 5 years ago

mqvlm commented 5 years ago

I used Skrollr.js for the different parallax and css animations included in each one of the sections.

Everything seems to be working fine except when a manual window resize event occurs: Skrollr doesn't seem to automatically recalculate window dimensions and the scroll-based animations get scrambled.

I'm not being able to understand the solutions for re-calculating browser dimensions in this case.

Skrollr can be found here: https://github.com/Prinzhorn/skrollr Thread about resizing issues here: https://github.com/Prinzhorn/skrollr/issues/401

Help needed.