A simple implementation of infinite scrolling that dynamically loads random photos from Unsplash API as you scroll down the page.
- Infinite Scroll: Images load as you scroll down.
- Unsplash API Integration: Fetches random images from Unsplash.
- Responsive Design: Optimized for different screen sizes.
You need an Unsplash API key to fetch images. To get your API key:
-
Go to Unsplash Developer.
-
Create an account (if you don't have one already).
-
Create a new application to get your Access Key.
-
Scroll Event Listener: When the user scrolls, we check if they have reached the bottom of the page.
-
Fetch Images: Once the bottom is near, we make a request to the Unsplash API to get new random images.
-
Display Images: The newly fetched images are added to the page dynamically, providing an infinite scrolling experience.
Unsplash API 🌍: Used to fetch random photos for the infinite scroll.
git clone https://github.com/Khairul25556/infinite-scroll.git