Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mismith/stickyscroll
Fixed-position scrollable area whose contents 'sticky'-scroll along with the document.
https://github.com/mismith/stickyscroll
Last synced: 22 days 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 (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-28T17:36:40.000Z (about 11 years ago)
- Last Synced: 2024-04-09T14:59:44.040Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 144 KB
- Stars: 1
- Watchers: 2
- 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: [![Demo](https://raw.github.com/mismith/stickyscroll/master/demo.gif)](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.