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

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

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
```