Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gforti/stickyscroll
A JavaScript class that allows for a sidebar to follow the user as they scroll down the page.
https://github.com/gforti/stickyscroll
Last synced: about 1 month ago
JSON representation
A JavaScript class that allows for a sidebar to follow the user as they scroll down the page.
- Host: GitHub
- URL: https://github.com/gforti/stickyscroll
- Owner: gforti
- Created: 2013-06-06T14:21:48.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-04T06:34:40.000Z (about 11 years ago)
- Last Synced: 2024-05-28T16:18:32.353Z (7 months ago)
- Language: JavaScript
- Size: 207 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License (MIT)
Awesome Lists containing this project
README
stickyscroll
============A JavaScript class that allows for a sidebar to follow the user as they scroll down the page.
This assumes that the side bar is on the right and not on the left. The code could be adjusted to make it for configurable but for now it is not supported.
###Demo
http://gforti.github.io/stickyscroll/###@params scrollerID
The ID of the Div to set as the sticky scroll object.
###@params rightOfID
The ID of the Div to set the location of the sticky scroll object to the right off.
###@params limitIDThe ID of the Div to set the scroll bottom limit of the sticky scroll object.
###Usage
stickyScroll.observe("sidebar","content");