https://github.com/mismith/stickyscroll
Fixed-position scrollable area whose contents 'sticky'-scroll along with the document.
https://github.com/mismith/stickyscroll
Last synced: 8 months ago
JSON representation
Fixed-position scrollable area whose contents 'sticky'-scroll along with the document.
- Host: GitHub
- URL: https://github.com/mismith/stickyscroll
- Owner: mismith
- Created: 2013-07-09T23:49:41.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-11-28T17:36:40.000Z (over 12 years ago)
- Last Synced: 2025-05-21T00:13:14.633Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 144 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
stickyscroll
============
**Fixed-position scrollable area whose contents 'sticky'-scroll along with the document.**
This is a progressive enhancement specifically useful for sidebars that are taller than the browser window but want to remain visible/fixed/stuck/onscreen even with very long page content.
Demo: [](http://jsfiddle.net/UpHUf/2/)
Example Code (with default options):
$('#sidebar').stickyscroll({
fixedTop: 0, // height to stick top tom, e.g. 44 (px)
fixedBottom: 0, // these can also be selectors, e.g. '#footer, #fixed'
});
License
-------
Copyleft: Feel free to use this basically any way you want.