Skip to content

Commit f6ce08a

Browse files
committed
Merge pull request cezary#1 from a-x-/patch-1
fix opacity reversion
2 parents 4813320 + 9e388f7 commit f6ce08a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/react-image-diff.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default class ImageDiff extends Component {
111111

112112
let afterStyle = {
113113
border: '1px solid #63c363',
114-
opacity: this.props.value,
114+
opacity: 1 - this.props.value,
115115
...style
116116
};
117117

0 commit comments

Comments
 (0)