JSPM

react-image-hover

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q24475F
  • License MIT

React Image hovering effects. Which will make your web app more interactive

Package Exports

  • react-image-hover

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-image-hover) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-image-hover

react-image-hover library is used to introduce image hover contect effects. This will increate your web app user experience

Installation

npm i --save react-image-hover

Usage

import React, { Component } from 'react';
import ImageContentHover from 'react-image-hover';

class App extends Component {
  render() {
    return (
      <div className="App">
        <ImageContentHover 
          className="image-cover"
          tileWidth="200px"
          tileHeight="200px" 
          image="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/example-image.jpg" 
          content={{
            title: 'Image Title',
            body: 'Image content viewer'
          }} 
          effect="fadeIn" />
      </div>
    );
  }
}

export default App;

Attributes

Dillinger is currently extended with the following plugins. Instructions on how to use them in your own application are linked below.

name value
className your class name
tileWidth image tile width
tileHeight image tile height
image image url or image base64 string
content This is a JSON object should have title and body as keys {title: '', body: ''}
effect fadeIn, slideVertical, slideHorizontal

License

MIT

Free Software, Hell Yeah!