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

constants #858

Open mamanuri opened 7 years ago

mamanuri commented 7 years ago

Hi, I have this data-attribute: data-_topoffset-top-top, where topoffset value was dynamically calculated by a function and passed via constants on Skrollr init.

If I understand, with a topoffset value (for example) = 70, the data-_topoffset-top-top must be the same as data-70-top-top. I'm right? Instead it behaves like data--70-top-top.

I'm doing something wrong?

thx in advance for your reply.