A collection of progressive loading effect with react.
npm install react-progressive-component>
[![license][license-badge]][license]
- https://jf423.github.io/react-progressive-component/
```
$ npm install react-progressive-component --save (or yarn add ...)
`jsx=url(${pic1}) center center / cover no-repeat
loader={small_pic1}
loaderStyle={'min-width: 100vw;height: 100vh;'}
>
style={{
minWidth: '100vw', height: '100vh',
background: `
}}
/>
`jsx=`
loader={small_pic2}
loaderStyle={'width: 100vw'}
>
src={pic2}
style={{ width: '100vw' }}
/>
| Prop | Type | Required | Default | Description |
| ------------- | --------- | -------------- | ---------------- | --------- |
| src | string | yes | ------|Origin image |loader
| | string | yes | ------|Compress image |loaderStyle` | string | option | filter: blur(10px); |The style of the loader. |
|
All contributions and stars are super welcome!
Please feel free to pull request.
MIT