Skip to content

Commit

Permalink
Merge pull request twobin#233 from svobik7/patch-1
Browse files Browse the repository at this point in the history
docs(README): update to cover horizontal lazy load support
  • Loading branch information
ameerthehacker authored May 6, 2019
2 parents f9ec624 + 9034236 commit dc3903c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ Type: Number/Array(Number) Default: 0

Say if you want to preload a component even if it's 100px below the viewport (user have to scroll 100px more to see this component), you can set `offset` props to `100`. On the other hand, if you want to delay loading a component even if it's top edge has already appeared at viewport, set `offset` to negative number.

If you provide this props with array like `[200, 200]`, it will set top edge offset and bottom edge offset respectively.
Library supports horizontal lazy load out of the box. So when you provide this prop with number like `100` it will automatically set left edge offset to `100` and top edge to `100`;

If you provide this prop with array like `[100, 200]`, it will set left edge offset to `100` and top offset to `200`.

### scroll

Expand Down

0 comments on commit dc3903c

Please sign in to comment.