LazyLoad

Runs a callback for lazy elements matching a selector when they become visible in the scrolling container

Live preview

Open in new tab ↗
  • easy usage
  • can be used for everything
  • vertically position only

Configuration:

  • container {String} a selector as a scrolling container (default: window)
  • selector {String} (important) selector for lazy elements
  • exec {String} a link to method, executed if the lazy element is visible
  • offset {Number} this value extends the size of scrolling area top/bottom. (default: 50)

Methods:

  • instance.refresh() refreshes current state

More UI components

Browse all 348