0.1.3 • Published 11 years ago
position-sticky v0.1.3
position-sticky
Emulation of position: sticky; using JavaScript.
Usage
Load position-sticky.min.js.
<script src="dist/position-sticky.js"></script>Call PositionSticky() with element as argument.
<script>PositionSticky(document.querySelector('.sticky'));</script>If you want to use this as Web Components Extension, set is="position-sticky" to <div>.
<div is="position-sticky"></div>License
0.1.3
11 years ago