Skip to content

arnavpanwar99/react-progress-loading

Repository files navigation

react-progress-loading

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

NPM JavaScript Style Guide

Install

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

Example

alt text For a working demo, checkout my sandbox

Usage

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={{}}
    />)
  }
}

License

MIT © arnavozil

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published