Socket
Book a DemoInstallSign in
Socket

ldlazy

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldlazy

Vanilla JS Lazy Show Library

Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 06 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts