Skip to content

Commit 9e388f7

Browse files
committed
fix opacity reversion
left position in fade mode is opposite to swipe mode now
1 parent 4813320 commit 9e388f7

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)