Skip to content

This web application fetches and displays a collection of random photos using the Unsplash API. It features infinite scrolling, allowing users to load more photos dynamically as they scroll down.

Notifications You must be signed in to change notification settings

danishmuaazkhan/InfintyScroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infinite Scroll - Unsplash API

This is a simple web application that uses the Unsplash API to fetch and display a collection of random photos. The photos are fetched dynamically as the user scrolls down the page.

Features

  • Fetches random photos from the Unsplash API.
  • Implements infinite scrolling to load more photos as the user reaches the bottom of the page.
  • Clicking on a photo opens the Unsplash link in a new tab.
  • Provides a loading animation while fetching and displaying the photos.

Technologies Used

  • HTML
  • CSS
  • JavaScript

Preview

Live Preview

How to Use

  1. Clone the repository:

  2. Open the project folder in your preferred code editor.

  3. Open the index.html file in a web browser.

  4. Scroll down the page to load more photos dynamically.

API Key

To use the Unsplash API, you will need an API key. Follow these steps to obtain your API key:

  1. Create an account on the Unsplash website.

  2. Visit the Unsplash Developer Portal and create a new application.

  3. Copy your API key.

  4. In the script.js file, replace the apiKey variable with your API key.

Customize

Feel free to customize the application by modifying the CSS styles in the style.css file. You can adjust the font, layout, or any other aspect to fit your preference.

Credits

  • Unsplash - The API used to fetch random photos.

About

This web application fetches and displays a collection of random photos using the Unsplash API. It features infinite scrolling, allowing users to load more photos dynamically as they scroll down.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published