Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/micnews/deku-lazy-load


https://github.com/micnews/deku-lazy-load

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# deku-lazy-load

Lazyload component for [deku](https://github.com/dekujs/deku).

## Usage

```shell
npm install deku-lazy-load
```

```js
import Lazyload from 'deku-lazy-load';

export default {
render: function () {
return ();
}
}
```

### Attributes

#### `offset=[Number]`

By default the children to the ``-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 `` component will have before the content has loaded

#### `height=[Number]`

Height that the `` component will have before the content has loaded