thenikso / angular-inview

AngularJS directive to check if a DOM element is in the browser viewport.
http://thenikso.github.io/angular-inview/
MIT License
480 stars 112 forks source link

Can i preload data? #70

Closed rayout closed 8 years ago

rayout commented 9 years ago

When scrolling down or up, i need to preload data before the object gets in to view. If i use offset:100px, it load after object gets in view by 100px. If i use negative offset, it does not work.

As I understand, jquery.inview plugin can do that if i need to preload images or something else.

jhpommier commented 8 years ago

I use this config : in-view-options="{offsetTop: '-400', offsetBottom: '400'}" and it works for me.