Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
web
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

ldLazy

Vanilla JS Lazy Show Library

Usage

ldlz = new ldLazy {root: document.body, toggle: function(n) { ... } } ldlz.add( ... );

options:

  • root - root element for monitoring scroll.
  • toggle - when visibility changes, toggle will be called with the target node as param. default null.
  • debounce - millisecond delay before handling events. require debounce.js, otherwise will be ignored.

API

  • ldlz.add(n) - start monitoring node n for visibility change.
  • ldlz.remove(n) - stop monitoring node n for visibility change.

License

MIT

About

Vanilla JS Lazy Show Library

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.