https://github.com/zecat/iron-scroll-spy
Auto select the current item in the viewport as the user scroll
https://github.com/zecat/iron-scroll-spy
Last synced: about 1 year ago
JSON representation
Auto select the current item in the viewport as the user scroll
- Host: GitHub
- URL: https://github.com/zecat/iron-scroll-spy
- Owner: Zecat
- Created: 2016-05-26T20:19:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-08-26T20:11:04.000Z (almost 9 years ago)
- Last Synced: 2024-11-11T11:39:25.183Z (over 1 year ago)
- Language: HTML
- Homepage:
- Size: 2.54 MB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# iron-scroll-spy
`iron-scroll-spy` is a container for a vertical list of elements, it observers the scroll in the scroll-target (if not specified, default to iron-scroll-spy itself) and select an element when it pass the middle of the scroll-target viewport.
Using iron-auto-scroll-spy, it also listen to change of the `selected` attribute and automatically scroll to the selected item.
**Check out the 2.0-preview branch for Polymer 2!**
## demo & doc
See [component page](http://zecat.github.io/iron-scroll-spy/components/iron-scroll-spy/#iron-auto-scroll-spy)
## installation
```
bower i -S Zecat/iron-scroll-spy
```