position-sticky
v0.1.3
Published
Emulation of position: sticky; using JavaScript
Downloads
19
Readme
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
MIT: http://1000ch.mit-license.org
