Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple jQuery plugin to simplify toggling an element between fixed and absolute positioning based on window scroll
branch: master

I'm nto sure what I was thinking when I first wrote this, but it most…

…ly works now. Horizontal position gets screwed up on resize while the element is floated though.
latest commit 27dee895f6
Chris Heald authored


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.
Something went wrong with that request. Please try again.