orizens / ngx-infinite-scroll

Infinite Scroll Directive for Angular
https://www.npmjs.com/package/ngx-infinite-scroll
MIT License
1.25k stars 223 forks source link

Set Loading GIF when scrollWindow off and [infiniteScrollDistance]="1" #343

Closed AyazBelim closed 4 years ago

AyazBelim commented 4 years ago

I want to set Loading GIF when user scroll upto 90% right after that element... Example array : 1 ,2, 3, 4, 5,6,7,8,9,10,11,12,13,14,15,16 per page: 12 now when user load 80 or 90 % then before 10 or 9 first i want to show loader or GIF on that element before getting next array. although i'm getting event on scroll down but it return current position however if i get both x, y position so dynamically i can create div for loader.

can anyone please tell me how can i handle ?

AyazBelim commented 4 years ago

Its resolved