react-image-diff
Compares images, inspired by Github's image diff view modes.
Installation
npm install react-image-diff
Demo
http://cezary.github.io/react-image-diff/
Usage
;; Component { return <ImageDiff before=thispropsoriginal after=thispropsaltered type="fade" value=5 /> ; }
Props
- after: string - url to after image
- before: string - url to before image
- height: number - height in pixels
- width: number - width in pixels
- type: string - type of image comparison (difference, fade, or swipe)
- value: number - decimal fraction used to compute transition between before and after images
License
MIT