Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 limitID

The ID of the Div to set the scroll bottom limit of the sticky scroll object.

###Usage

stickyScroll.observe("sidebar","content");