garand / sticky

jQuery Plugin for Sticky Objects
Other
3.3k stars 1.06k forks source link

Added support for relatively positioned elements with top offset #101

Closed tomlagier closed 7 years ago

tomlagier commented 10 years ago

I simply track the top offset of the sticky elements and then factor that offset in when determining where to stick and unstick the elements. This prevents the "jump" of a relatively positioned element with a top offset.

coffeeneed commented 8 years ago

Hi! I'm searching for a solution for something that I think I related to yours. Can you verify, please?

And: is it possible to fix this with some kind of delay in my JavaScript file (in other words without editing the core files for Sticky)

https://github.com/garand/sticky/issues/213