Infinite Scroll Widget
Create/decorate an element which loads more content automatically when the scroll position reaches either the top or bottom.
var infiniscroll = var el =
Notes:
fetchTop
andfetchBottom
are optional- the first param may be a tagname, hyperscript template string, or existing DOM element
- When the element scrolls away from the top, this adds a
scrolled
class to do custom styling
LICENSE
MIT