0.1.3 • Published 9 years ago

position-sticky v0.1.3

Weekly downloads
7
License
MIT
Repository
github
Last release
9 years ago

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

0.1.3

9 years ago