A web page to demonstrate infinite scroll functionality which can be seen in many websites nowadays. Every time the user scrolls down to the bottom of the page more content is loaded.
In this web page initially only 5 images are loaded from the API. As the user scrolls down another request to API is made to fetch more images resulting in an infinite scroll.
API used - Unsplash
To try it out follow these steps :
- Clone the repo.
- Open the
script.jsfile in your text editor. - Replace the value of
apiKeyconstant with your own API key from Unsplash. - Save the changes.
- Now fire up the
index.htmlfile and keep scrolling.
Screenshots below :




