garand / sticky

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

only works with the last element with class #157

Open grossmail1 opened 9 years ago

grossmail1 commented 9 years ago

This element only seems to effect the last element with this specified class. I would like this to stick all of them to the top of the page and push them off one by one. I know the pushing will require a bit more work on my end but getting the first one to stick would be a start.

Emi-C commented 8 years ago

Hi, you can workaround this by cycling the class selector, I think this is meant to customize each element separately.

$(".classname").each(function(){
    $(this).sticky(options);
});