react-blur-mouseover
v1.0.1
Published
This is a component for React that gives you the ability to view before and after photos with a blur circle.
Downloads
2
Readme
react-blur-mouseover(demo)
This is a component for React that gives you the ability to view before and after photos with a blur circle.
Install
npm install --save react-blur-mouseover
Usage
import React, { Component } from 'react'
import ReactBlurMouseover from 'react-blur-mouseover'
class Example extends Component {
const firstImage = {
src : 'image1.jpg',
width: '100%',
height: '500px'
};
const secondImage = {
src : 'image2.jpg',
width: '100%',
height: '500px'
};
render() {
return <ReactBlurMouseover
firstImage={firstImage}
secondImage={secondImage}
radius={100}
/>
}
}
Props
| Property | Type | Default | Description |
| -------------- | ------ | -------- | ---------------------------------- |
| firstImage
| object | Required | source, width and height of image. |
| secondImage
| object | Required | source, width and height of image. |
| stdDeviation
| number | 5 | The amount of blur circle |
| radius
| number | 50 | Radius of circle |
License
MIT © saberap