how to make infinite scroll javascript code example
Example: infinite scroll javascript
<div class="article-feed">
<article class="article">...</article>
<article class="article">...</article>
...
</div>
<div class="scroller-status">
<div class="infinite-scroll-request loader-ellips">
...
</div>
<p class="infinite-scroll-last">End of content</p>
<p class="infinite-scroll-error">No more pages to load</p>
</div>
<p class="pagination">
<a class="pagination__next" href="page2.html">Next page</a>
</p>