DEV Community

Cover image for Create an infinite scroll website using JavaScript
Aman Singh
Aman Singh

Posted on

Create an infinite scroll website using JavaScript

Create an infinite scroll site using javascript.

Live : https://javascript-scroll.netlify.app/

  1. Create an HTML file(index.html) and add below code to it.
    index

  2. Create a javascript file and add the below code to it.
    javascript

  3. you can write your own CSS or get the CSS file from my git repo given below

Points : 1. all the data is coming from API.

        2. as you scroll down the API get called and data get 
           loaded.
Enter fullscreen mode Exit fullscreen mode

GitHub logo Aman2221 / Infinite_Scroll_JS

Create a site with infinite scroll using JavaScript

Infinite_Scroll_JS

Create a site with infinite scroll using JavaScript preview

Thank you ❤️️

Top comments (0)