Skip to content

Ajit24/Infinite-Scrolling-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Infinite-Scrolling-assignment

INFINITE SCROLLING assignment , which is built from pure JS.

problem statement :

You are required to make a list that will scroll infinitely

add 25 items on load

user overflow css property to manage the scrollbar for the div

add event listener to list element ( can use debouncing / throttling here )

use scroll event

check a condition to see if you have reached the end of the element

look at the following properties in the Element API

scrollTop

clientHeight

scrollHeight

getBoundingClientRect

getClientRects

use in any combination to achieve your task

when the condition is met, load 25 more items into the list

For the ones who are got it already done in plain JS

About

INFINITE SCROLLING assignment , which is built from pure JS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages