@meteora-digital/lazy

2.2.1 • Public • Published

Lazy Load

Note: version 2.0.0+ has updates that will break previous versions, updates to your code will be required.
yarn add @meteora-digital/lazy
import Lazy from '@meteora-digital/lazy';

window.Lazy = new Lazy({
    offset: 500,
});

window.Lazy.watch('selector');
  • selector is a string
  • offset is a pixel value from the bottom of the screen

Readme

Keywords

Package Sidebar

Install

npm i @meteora-digital/lazy

Weekly Downloads

3

Version

2.2.1

License

MIT

Unpacked Size

25.7 kB

Total Files

5

Last publish

Collaborators

  • meteora-digital