Skip to content

Latest commit

 

History

History
32 lines (16 loc) · 522 Bytes

README.md

File metadata and controls

32 lines (16 loc) · 522 Bytes

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.

License

MIT License