leafo / sticky-kit

A jQuery plugin for creating smart sticky elements
http://leafo.net/sticky-kit
2.91k stars 521 forks source link

When stickied element is bigger than the vewport the scroll display is the lower part of the sticky #116

Open DanielGarzaB opened 9 years ago

DanielGarzaB commented 9 years ago

Lets say I have a sidebar where i want to sticky the related articles in my site, if the related articles div is higher than the view port, on scroll down it will sticky all correctly but it will show the lower part of the div when scrolling

Saw this jquery http://someweblog.com/hcsticky-jquery-floating-sticky-plugin/ (I dont like it because it´s quite heavy) which fixes it with this option:

spidgorny commented 8 years ago

This is an issue for me too. If scrolling back to the top it should set the sidebar position to the top as well. Currently it prioritizes bottom of the sidebar over it's top.