Allow elements to stick within viewport when scrolling. Toggles position: fixed only after scrolling the viewport. Degrades nicely on mobile and tablet browsers.
- Doesn’t overflow footer because footer pushes elements up.
- Doesn’t need any hardcoded CSS tricks.
- All major browsers through position:fixed and iOS/Android/IE7 degrade through margin offset.
- Fixes tablet and mobile zoom issue with fixed
- Offset position from top and bottom within scrolled viewport.
- Super light weight: 2.6kb uncompressed.
- Div layout structure can be floats or position: absolute support.