Prinzhorn / skrollr

Stand-alone parallax scrolling library for mobile (Android + iOS) and desktop. No jQuery. Just plain JavaScript (and some love).
http://prinzhorn.github.io/skrollr/
MIT License
18.53k stars 3.51k forks source link

with high res really big images (3000+ height, width) getting a slowdown due to image decoding #825

Open pimpace opened 8 years ago

pimpace commented 8 years ago

Hey

I'm getting little glitch when viewport reaches the next background parallax image while scrolling down. I realized that it's due to image decoding when images getting inside the viewport. (used Chrome dev tools's time-line feature)

How could I prevent this? According to THIS site, somehow skrollr should put the images into viewport hidden, or invisible, etc, to force browser to decode during webpage load.

Can you point me a right direction please?