8000 GitHub - DalaScript/infinite-scroll: ZTM JS Web Projects Course | Infinite Scroll | Project 2/20
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

DalaScript/infinite-scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infinite Scroll | ZTM JS Web Projects Course

Project 2/20

This is a dynamic image gallery built with HTML, CSS, and JavaScript that uses the Unsplash API to fetch and display random images with infinite scrolling. When the user scrolls near the bottom of the page, more photos are automatically loaded.

⚠️ Important: You must use your own Unsplash API key to make this project work. Visit Unsplash Developers to register and obtain an API key.


📚 Table of contents


🔎 Overview

📸 Screenshot

Live Preview Screenshot

🔗 Links

📌 Features

  • ✅ Infinite Scroll to fetch more images on demand
  • ✅ Smooth image loading experience

📦 Setup & Installation

1️⃣ Clone the Repository

git clone https://github.com/DalaScript/infinite-scroll.git
cd infinite-scroll

2️⃣ Add Your API Key

Replace the apiKey in script.js with your own Unsplash API key:

const apiKey = 'YOUR_UNSPLASH_API_KEY';

3️⃣ Run the Project

You can open index.html directly in your browser or use a local development server:

# Example: Using VS Code Live Server or any static file server

🧠 My Process

🛠️ Built with

  • HTML5
  • CSS3
  • Vanilla JavaScript
  • Unsplash API

🎓 What I Learned

  • Handling API response flow with async/await and dynamic batch size
  • Efficient infinite scroll logic using scroll position and load tracking
  • Image load management for smoother UX and controlled rendering
  • Clean DOM manipulation with reusable helper functions

🚀 For me, this project was more about practice and gaining additional experience,
rather than learning something entirely new.

👨‍💻 Since I’m not a beginner and already familiar with these technologies,
I approached it with confidence — and still, I truly enjoyed working on it.

🎯 Overall, I consider this a very valuable and enjoyable experience.

🔙 Previous Project

🔜 Next Project

🗃️ Useful resources


👤 Author

🌐 Connect with Me

💻 Coding Profiles

🙌 Thanks for checking out my project! More coming soon. Stay tuned 🚀

About

ZTM JS Web Projects Course | Infinite Scroll | Project 2/20

Topics

Resources

Stars

Watchers

Forks

0