@altipla/scroll-floater

1.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @altipla/scroll-floater

Weekly Downloads

2

Version

1.2.0

License

none

Unpacked Size

30.8 kB

Total Files

7

Last publish

Collaborators

  • ernestoalejo