🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Sticky.js is an ultra-light jQuery plugin that makes it easy to stick any Html elements to the top of the web page during scrolling.

Sticky

Documentation

Sticky

Sticky is jQuery plugin that fixes block on screen while scrolling. Tipically used for sitebars.

Demo

http://happyproff.ru/jquery-sticky-plugin/

Usage

Inlcude plugin:

<script src="js/jquery.min.js"></script> <script src="js/sticky.jquery.js"></script>

Use it:

$('.sneakyBlock').sticky();

or

$('.sneakyBlock').sticky(50);

(where 50 is distance in pixels between sneakyBlock and top of window)


You May Also Like