This jquery plugin sticky elements for create sticky elements. It keeps your div at position you want and create rules for it to stay & hide.
1. INCLUDE JS FILES
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/jquery.sticky.elements.js"></script>
2. HTML
<div class="grid" id="grid1" style="background: rgb(169, 199, 238);color: black;border: black 1px solid;">
<img src="icons/external-link.png" class="icon">
This is a demo grid - I, position not fixed
</div>
3. JAVASCRIPT
$("#grid5").stikify(rate: 3.4, cieling: -100);
jQuery sticky elements
No comments:
Post a Comment