Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/micnews/deku-lazy-load
https://github.com/micnews/deku-lazy-load
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/micnews/deku-lazy-load
- Owner: micnews
- Created: 2015-12-03T10:01:10.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-15T10:48:19.000Z (almost 9 years ago)
- Last Synced: 2024-09-20T13:18:01.555Z (4 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 3
- Watchers: 13
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-deku - deku-lazy-load - Lazyload component for deku. (Components)
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