Smart Sidebar
jquery plugin used to convert an element in a sidebar that follow the scroll in the right way, even when sidebar is higher than viewport.
Install
bower install smart-sticky-header
Usage
You need to call the smartSidebar
method over the element that you want to became your sidebar.
;
You can define the position by css:
If the header and footer are sticky and always visibles:
If the site header is sticky and the footer is on the end of scroll:
If the header is auto-hide sticky, and the footer is on the end of the scroll: