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

panel moving up on sccroll with no speed change #850

Open NetworkGreenhouse opened 7 years ago

NetworkGreenhouse commented 7 years ago

I am a newby here. Having an amazing time with Skrollr!

I cannot figure out how to freeze and image to the scrolling. Like this first kitty...

http://prinzhorn.github.io/skrollr/examples/pausing.html

the image just lifts, no actual parallaxing. I seems the simplest, and I've tried to the data info from this example... does not work (handles my images differently maybe?). I am currently using...

... and have tried using this data info from this example...

data-0="transform:translate(0,0%);" data-100p="transform:translate(0,-100%);"

but it breaks. Am on the right track? Can anyone help?

Thanks!