angular-ui / ui-scrollpoint

Add a 'ui-scrollpoint' class to elements when the page scrolls past them.
https://htmlpreview.github.io/?https://github.com/angular-ui/ui-scrollpoint/master/demo/index.html
MIT License
28 stars 25 forks source link

advanced edge configurations #16

Closed plong0 closed 8 years ago

plong0 commented 8 years ago

Allows specifying different offsets for top and bottom.

examples:

Activate within 25 pixels of top or bottom of target: <div ui-scrollpoint ui-scrollpoint-edge="{'top': '-25', 'bottom': '+25'}"></div>

Active when scrolled between 25% from top and 25px from bottom <div ui-scrollpoint ui-scrollpoint-edge="{'top': '25%', 'bottom': '25'}"></div>

PowerKiKi commented 8 years ago

Released as 2.1.0