Simple jQuery plugin to simplify toggling an element between fixed and absolute positioning based on window scroll
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example.html
jquery.floatingFixed.js
readme.txt

readme.txt

This is a quick little jQuery plugin to provide "sticky rail" functionality. Call $.floatingFixed() on an element that is position: absolute, and when the element would scroll off the screen, it will instead be "stuck" on the screen, and will return to its original position when you scroll it back into view. See example.html for more details.