Skip to content

Commit 8a53d40

Browse files
committed
Add live demo and more screenshots
1 parent 70651e1 commit 8a53d40

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ React Component to lazy load images and other components/elements. Includes a HO
88
[![Download counter](https://img.shields.io/npm/dt/react-lazy-load-image-component.svg)](https://www.npmjs.com/package/react-lazy-load-image-component)
99
[![License](https://img.shields.io/npm/l/react-lazy-load-image-component.svg)](https://www.npmjs.com/package/react-lazy-load-image-component)
1010

11+
## [Live demo](https://www.albertjuhe.com/react-lazy-load-image-component/)
12+
1113
## Features
1214

1315
* Includes two components (`LazyLoadImage` and `LazyLoadComponent`) and a HOC (`trackWindowScroll`) which adds scroll position tracking to any component you wish.
@@ -89,9 +91,17 @@ const MyImage = ({ image }) => (
8991
The current available effects are:
9092

9193
* `blur`: renders a blurred image based on `placeholderSrc` and transitions to a non-blurred one when the image specified in the src is loaded.
94+
95+
![Screenshot of the blur effect](https://user-images.githubusercontent.com/3616980/37790728-9f95529a-2e07-11e8-8ac3-5066c065e0af.gif)
96+
9297
* `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.
98+
99+
![Screenshot of the black-and-white effect](https://user-images.githubusercontent.com/3616980/37790682-864e58d6-2e07-11e8-8984-ad5d7b056d9f.gif)
100+
93101
* `opacity`: renders a blank space and transitions to full opacity when the image is loaded.
94102

103+
![Screenshot of the opacity effect](https://user-images.githubusercontent.com/3616980/37790755-b48a704a-2e07-11e8-91c3-fcd43a91e7b1.gif)
104+
95105

96106
## `LazyLoadComponent` usage
97107

0 commit comments

Comments
 (0)