Skip to content

dmcdaniel90/infinite-scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unsplash Infinite-Scroll

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.

Features

  • 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

Setup

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

Contributing

Contributions are welcome! Please feel free to submit a pull request.