react-image-loaded

0.3.0 • Public • Published

react-image-loaded

Add a smooth animation to images once they're loaded

Install

/* ReactJS */
$ npm i react-image-loaded react-motion --save

/* PreactJS */
$ npm i react-image-loaded preact-motion --save

Usage

import ImageLoader from 'react-image-loaded'

..

render () {
  const { open } = this.state

  return (
    <ImageLoader
      className={style.image}
      opacity={true}
      url='http://via.placeholder.com/200x200'
    />
  )
}

License

MIT © Jack Hanford

/react-image-loaded/

    Package Sidebar

    Install

    npm i react-image-loaded

    Weekly Downloads

    1

    Version

    0.3.0

    License

    MIT

    Last publish

    Collaborators

    • hanford