Simple webblock with the input parameter of a widgetId.
When the container of the widgetId has a scrollable field e.g: fixed height and overflow-y set to auto or scroll.
The webblock will trow an event when the end is reached (Only on scroll down)
If you use this event with an aggregate and increase the maxrecords each time the event is thrown, Infinite scrolling will be achieved.