3 options based on pure CSS , JavaScript or SmoothScroll JS library. Cross browser usability.
Online
screenshot infinityscroll 2019.06.19 09 55 08