# react-progress-loading

> Progressively load images using a medium like blur effect.

Latest version **1.0.22** (published 2020-06-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-progress-loading
pnpm add react-progress-loading
yarn add react-progress-loading
bun add react-progress-loading
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.22 |
| Published | 2020-06-03 |
| First published | 2020-06-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 16.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | arnavozil |
| Maintainers | arnavpanwar99 |
| Keywords | progressive-loading, progressive-image-loading, react-progressive-image, progressive-web, react |

## Links

- npm: https://www.npmjs.com/package/react-progress-loading
- Repository: https://github.com/arnavozil/react-progress-loading
- Homepage: https://github.com/arnavozil/react-progress-loading#readme
- Issues: https://github.com/arnavozil/react-progress-loading/issues
- npm.io page: https://npm.io/package/react-progress-loading

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.22 (latest) — 2020-06-03
- 1.0.21 — 2020-06-03
- 1.0.20 — 2020-06-03
- 1.0.19 — 2020-06-03
- 1.0.18 — 2020-06-03
- 1.0.17 — 2020-06-03
- 1.0.16 — 2020-06-03
- 1.0.15 — 2020-06-03
- 1.0.14 — 2020-06-03
- 1.0.13 — 2020-06-03
- 1.0.12 — 2020-06-03
- 1.0.11 — 2020-06-03
- 1.0.10 — 2020-06-03
- 1.0.9 — 2020-06-03
- 1.0.8 — 2020-06-03
- … 8 more at https://npm.io/package/react-progress-loading/versions

## README

# react-progress-loading

>Light weight react library to progressively load images using a medium like blur effect.

[![NPM](https://img.shields.io/npm/v/react-progress-loading.svg)](https://www.npmjs.com/package/react-progress-loading) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save react-progress-loading
yarn add react-progress-loading
```

## Example

![alt text](https://s7.gifyu.com/images/medium.gif)

## Demo

For a working demo, checkout my [sandbox](https://codesandbox.io/s/react-progress-loading-rcxhl?file=/src/Image.js)

## Usage

```jsx
import React, { Component } from 'react'

import ProgressiveImage from 'react-progress-loading'

class Example extends Component {
  render() {
    return (<ProgressiveImage
          originalImageSrc={originalImage} //requied
          smallImageSrc={smallImage} //required
          containerDivStyles={{}}
          smallImageStyles={{}}
          originalImageStyles={{}}
          originalImageAlt=''
          smallImageAlt=''
    />)
  }
}
```

## Props

#### `originalImageSrc`
 Required: Yes<br />
 Description: The url to original image<br />
 Type: string (url)


#### `smallImageSrc`
 Required: Yes<br />
 Description: The url to smaller(roughly 10% of original one) image<br />
 Type: string (url)


#### `originalImageAlt`
 Required: No<br />
 Description: The alt text of original image<br />
 Type: string


#### `smallImageAlt`
 Required: No<br />
 Description: The alt text of small image<br />
 Type: string


#### `originalImageStyles`
 Required: No<br />
 Description: The styles to be applied to original image<br />
 Type: object


#### `smallImageStyles`
 Required: No<br />
 Description: The styles to be applied to small image<br />
 Type: object


#### `containerDivStyles`
 Required: No<br />
 Description: The styles to be applied to div containing both the images<br />
 Type: string (url)


## License

MIT © [arnavozil](https://github.com/arnavozil)

---
_Source: https://npm.io/package/react-progress-loading · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
