stutrek / scrollmonitor

A simple and fast API to monitor elements as you scroll
MIT License
3.3k stars 243 forks source link

Percentage offset values #72

Open Jugibur opened 6 years ago

Jugibur commented 6 years ago

Are there plans for implementing the offset values with pixel or with percentages? This allows a more similar behavior on different screen sizes.

stutrek commented 6 years ago

I have no plans to, but a PR implementing it would be welcome.

stratboy commented 5 years ago

This is a must have feature. Pixel offset is quite useless, since you don't know how tall is the window. Otherwise, at least, you should let pass a function instead of an object, so one can try to manually calculate the value each time. Still not an optimal solution. Just passing something like '.25' would be far more useful.