Skip to content

micnews/deku-lazy-load

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deku-lazy-load

Lazyload component for deku.

Usage

npm install deku-lazy-load
import Lazyload from 'deku-lazy-load';

export default {
  render: function () {
    return (<Lazyload><img src='image.jpg'/></Lazyload>);
  }
}

Attributes

offset=[Number]

By default the children to the <Lazyload>-component will be loaded precisely when they enter the viewport, set a offset to load the children when they're about to be shown in the viewport.

width=[Number]

Width that the <Lazyload> component will have before the content has loaded

height=[Number]

Height that the <Lazyload> component will have before the content has loaded

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages