1.2.0 • Published 6 years ago

@altipla/scroll-floater v1.2.0

Weekly downloads
2
License
-
Repository
github
Last release
6 years ago

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