Sticky Elements is a javascript library to make everytihng sticky with animation. It has some options to customize.
Website Demo
Subscribe to email newsletter for latest jQuery plugins & tutorials.