JSPM

react-gif-loader

0.6.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 75
  • Score
    100M100P100Q76137F
  • License MIT

Put a description here

Package Exports

  • react-gif-loader

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-gif-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React Gif Loader

Install

npm install react-gif-loader --save

Demo

demo

Usage

React gif loader example with customize your own styles
import GifLoader from 'react-gif-loader';

class ReactGifLoader extends Component {
    render() {
        return (
            <GifLoader
                loading={true}
                imageSrc="https://media.giphy.com/media/l378zKVk7Eh3yHoJi/source.gif"
                imageStyle={imageStyle}
                overlayBackground="rgba(0,0,0,0.5)"
            />
        );
    }
}

PROPTYPES

Prop Type Default Required
imageSrc String https://media.giphy.com/media/l378zKVk7Eh3yHoJi/source.gif No
overlayBackground String rgba(0,0,0,0.4) No
imageStyle Object {marginTop: "20%"} No
loading Boolean - Yes

react-gif-loader