js-sticky-element
v1.1.1
Published
A css position: sticky; but with Javascript and supported across all browsers.
Downloads
3
Readme
js-sticky-element
A css position: sticky; but with Javascript and supported across all browsers.
Installation
Use npm to install js-sticky-element.
npm install js-sticky-element --save
Usage
import { stickyElement } from 'js-sticky-element';
stickyElement('.my-element');
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.