garand / sticky

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

How to use topSpacing then switch to bottomSpacing? #206

Open bretterballz opened 8 years ago

bretterballz commented 8 years ago

I have an element that sticks at 80px from the top, but need it not to scroll past 290px from the bottom. How can I switch from topSpacing to bottomSpacing when the element gets to the bottom of the screen?

Thank you!