@altipla/scroll-floater
v1.2.0
Published
Float an element when the scroll touches it.
Downloads
5
Readme
scroll-floater
Float an element when the scroll touches it.
Docs
Simple usage:
let floater = new altipla.ScrollFloater(document.querySelector('#foo'));
Limit to a parent container:
let floater = new altipla.ScrollFloater(document.querySelector('#foo'), 0, document.querySelector('#container'));
Other options and methods see the source docs directly.
Contributing
You can make pull requests or create issues in GitHub.