This version is old school.
Please find jQuery plugins on npm.
Hachiko jQuery sticky
by Paul Yuan
A jQuery sticky plugin that allows a relatively positioned element to be stickied onto the screen when the element is scrolled outside of the viewport. Instead of changing the position of the element on window scroll, this plugin creates a clone of the original element and set the clone to be fixed positioned so the original layout is always preserved.
Versions
Version
Date
1.0.0
May 07, 2013