An Interest In:
Web News this Week
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
February 2, 2021 06:52 am GMT
Original Link: https://dev.to/lapstjup/bare-minimum-infinite-scroll-ui-2jd0
Bare minimum Infinite Scroll UI
Infinite scrolling ui is implemented in many web apps today. So in an attempt to explore the same, I made a bare minimum codepen to achieve the same with two different implementations :-
Using Scroll Position - Making use of scrollTop, offsetHeight and scrollHeight to know when to load the next items.
Using Intersection Observer - Having a placeholder at bottom of the list and observing when it intersects with our list in view so that we can load the next items.
Original Link: https://dev.to/lapstjup/bare-minimum-infinite-scroll-ui-2jd0
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To