This project is a simple web application that implements an infinite scroll feature using the Unsplash API. As the user scrolls down the page, more images are loaded and displayed.
- Fetches random images from the Unsplash API
- Displays images in a grid layout
- Loads more images when the user scrolls near the bottom of the page
- Displays an error page with a Lottie animation if there's an error fetching images
- Allows the user to retry fetching images after an error
To run this project locally, follow these steps:
- Clone the repository:
git clone <repo>
- Install the dependencies using npm:
npm install
- Create a .env file in the root directory of the project and add your Unsplash API key
- Start the development server:
npm run dev
- The application will be available at
http://localhost:1234
Contributions are welcome! Please feel free to submit a pull request.