Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/altipla-consulting/scroll-floater
- Owner: altipla-consulting
- License: mit
- Created: 2016-06-17T21:06:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-11T21:17:06.000Z (over 5 years ago)
- Last Synced: 2024-11-16T09:18:38.356Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://github.com/altipla-consulting/scroll-floater
- Size: 23.4 KB
- Stars: 1
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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)