Skip to content

mebjas/jQuery-sticky-elements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery-sticky-elements

jquery plugin to create sticky elements -- worrying how to keep your div at position you want, want to create rules for it to stay & hide, jQuery-sticky-elements is made just for you.

View Demo

Screenshot Screenshot

=============

How to use

Checkout the demo page on more details on how to use.

<div id="grid5"> some content here </div>

<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/jquery.sticky.elements.js"></script>
<script type="text/javascript">
	$("#grid5").stikify({rate: 3.4, cieling: -100});
</script>

just include jQuery, our sticky element plugin & you have just stikified it!

$("#grid4").stikify({
	floor: 100,		// the height at which the items starts to scroll
	rate: 1.6,		// speed corresponding to scroll
	cieling: -100,	// max height (pixel) that the item can move up.
	trans: true,	// transparency with scroll
});