Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/altipla-consulting/scroll-floater

Float an element when the scroll touches it.
https://github.com/altipla-consulting/scroll-floater

Last synced: about 1 month ago
JSON representation

Float an element when the scroll touches it.

Awesome Lists containing this project

README

        

# scroll-floater

Float an element when the scroll touches it.

## Docs

Simple usage:

```js
let floater = new altipla.ScrollFloater(document.querySelector('#foo'));
```

Limit to a parent container:

```js
let floater = new altipla.ScrollFloater(document.querySelector('#foo'), 0, document.querySelector('#container'));
```

Other options and methods see [the source](src/scroll-floater.js) docs directly.

## Contributing

You can make pull requests or create issues in GitHub.

## License

[MIT License](LICENSE)