|File Size:||19 KB|
|Official Website:||Go to website|
Just another jQuery plugin that provides a simplest way to make any Html elements (navigation, sidebar, table header) stick to the top of the webpage while scrolling.
How to use it:
1. Load the jQuery KeepInSight plugin after jQuery library, but before the closing body tag.
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script> <script src="jquery.keepinsight.js"></script>
2. Call the plugin on the html elements to make anything stick at the top of the page when scrolled.
jQuery('header, table thead').keepInSight();
3. Destroy the plugin.
- Stickies are sorted in document order to make sure they always stack-up correctly.
- 'keepInSight' can be switched off.