image-diff-view
Compares images, inspired by Github's image diff view modes.
Inspered by https://github.com/cezary/react-image-diff also (Demo).
Modes
difference
(classic diff)fade
(onion skin)swipe
Usage
Controls are not delivery out of the box. You are free to implement your unique diff controls.
npm install image-diff-view
; var beforeUrl = 'http://cezary.github.io/react-image-diff/public/img/spot-the-difference-a.jpg' afterUrl = 'http://cezary.github.io/react-image-diff/public/img/spot-the-difference-b.jpg'; var imageDiff = document beforeUrl afterUrl 'swipe';imageDiff;imageDiff;imageDiff;imageDiff; // abstract tune method rather than fade/swipe()
Dependencies
No dependencies required
Our users
- Yandex