项目作者: gglukmann

项目描述 :
Lazyload images with Intersection Observers
高级语言: JavaScript
项目地址: git://github.com/gglukmann/lazyloadify.git
创建时间: 2019-01-04T11:24:20Z
项目社区:https://github.com/gglukmann/lazyloadify

开源协议:MIT License

下载


lazyloadify

A tool for lazy-loading images that reach a parent container, such as the viewport.

Usage

  1. import Lazyloadify from 'lazyloadify';
  2. const options = {};
  3. const imageLoader = new Lazyloadify(options);
  4. imageLoader.load();

Options

Plain Intersection Observer options. See Intersection Observer API on MDN.