Nolanus / ngx-page-scroll

Animated scrolling functionality for angular written in pure typescript
https://nolanus.github.io/ngx-page-scroll/
MIT License
478 stars 107 forks source link

Question : Can this be used to simply watch scroll position ? #12

Closed uzumakinaruto123 closed 8 years ago

uzumakinaruto123 commented 8 years ago

Can this be used to simply watch scroll position ? After certain offset from top of page say 100 i want tochange some css properties .

If user scrolls back below 100 again then i again need to reverse/change css properties.

Thanks !

Nolanus commented 8 years ago

Hi,

no, this library can not be used for that purpose. What you are looking for is related to "scroll spying" like https://www.npmjs.com/package/ng2-scrollspy.

uzumakinaruto123 commented 8 years ago

Thanks ! ya i got that but its not working . i get the issue i posted here https://github.com/JonnyBGod/ng2-scrollspy/issues/26

well that feature can be a good addon to this to use. all in one including scrolls to anchor tag.