Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1.12 KB

README.md

File metadata and controls

33 lines (19 loc) · 1.12 KB

Infinite Scroll

Implemented using HTML, CSS and vanilla JavaScript

Compiled with Vite

Description

This simple app renders random images while scrolling vertically which should give you a feeling of going over endless collection of images.

How it works

New images are fetched using Lorem Picsum API which takes images from Unsplash API.

First few images are rendered when the app is loaded. Next pictures are added while scrolling, before you reach the bottom of the list.


Why didn't I just use Unsplash API then?

  1. I have no experience in back-end and I haven't learned yet how to secure API keys
  2. I wanted to practice making API calls :)

Issues

  • Img size values defined in app.js have no effect on the returned images.
    • The reason for that is swaping URLs while fetching data.
    • However, it is necessary to get metadata like source, author, etc.
  • Images loaded to app have high resolution which slows the app down when Internet connection is slow

Credits

Loops icon created by Pixelmeetup - Flaticon