Skip to content

Commit 70651e1

Browse files
committed
Minor fixes in the README
1 parent 5bcc6c3 commit 70651e1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default MyImage;
5757
| afterLoad | `Function` | | Function called after the image has been completely loaded. |
5858
| beforeLoad | `Function` | | Function called right before the placeholder is replaced with the image element. |
5959
| delayMethod | `String` | `throttle` | Method from lodash to use to delay the scroll/resize events. It can be `throttle` or `debounce`. |
60-
| delayTime | `String` | 300 | Time in ms sent to the delayMethod. |
60+
| delayTime | `Number` | 300 | Time in ms sent to the delayMethod. |
6161
| effect | `String` | | Name of the effect to use. Please, read next section with an explanation on how to use them. |
6262
| placeholder | `ReactClass` | `<span>` | React element to use as a placeholder. |
6363
| placeholderSrc | `String` | | Image src to display while the image is not visible or loaded. |
@@ -88,9 +88,9 @@ const MyImage = ({ image }) => (
8888

8989
The current available effects are:
9090

91-
* blur: renders a blurred image based on `placeholderSrc` and transitions to a non-blurred one when the image specified in the src is loaded.
92-
* black-and-white: renders a black and white image based on `placeholderSrc` and transitions to a colorful image when the image specified in the src is loaded.
93-
* opacity: renders a blank space and transitions to full opacity when the image is loaded.
91+
* `blur`: renders a blurred image based on `placeholderSrc` and transitions to a non-blurred one when the image specified in the src is loaded.
92+
* `black-and-white`: renders a black and white image based on `placeholderSrc` and transitions to a colorful image when the image specified in the src is loaded.
93+
* `opacity`: renders a blank space and transitions to full opacity when the image is loaded.
9494

9595

9696
## `LazyLoadComponent` usage
@@ -119,7 +119,7 @@ export default Article;
119119
| afterLoad | `Function` | | Function called after the component has been rendered. |
120120
| beforeLoad | `Function` | | Function called right before the component is rendered. |
121121
| delayMethod | `String` | `throttle` | Method from lodash to use to delay the scroll/resize events. It can be `throttle` or `debounce`. |
122-
| delayTime | `String` | 300 | Time in ms sent to the delayMethod from lodash. |
122+
| delayTime | `Number` | 300 | Time in ms sent to the delayMethod from lodash. |
123123
| placeholder | `ReactClass` | `<span>` | React element to use as a placeholder. |
124124
| threshold | `Number` | 100 | Threshold in pixels. So the component starts loading before it appears in the viewport. |
125125
| visibleByDefault | `Boolean` | false | Whether the component must be visible from the beginning. |
@@ -178,7 +178,7 @@ Component wrapped with `trackWindowScroll` (in the example, `Gallery`)
178178
| Prop | Type | Default | Description |
179179
|:---|:---|:---|:---|
180180
| delayMethod | `String` | `throttle` | Method from lodash to use to delay the scroll/resize events. It can be `throttle` or `debounce`. |
181-
| delayTime | `String` | 300 | Time in ms sent to the delayMethod from lodash. |
181+
| delayTime | `Number` | 300 | Time in ms sent to the delayMethod from lodash. |
182182

183183
Notice you can do the same replacing `LazyLoadImage` with `LazyLoadComponent`.
184184

0 commit comments

Comments
 (0)