Skip to content

Commit d26156a

Browse files
committed
Added opacity
1 parent 0d4f048 commit d26156a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ImageMask/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@ export default ({ imageData, imagePosition, videoPlaying, maskVersion, opacity =
2222
width: isNaN(width) ? 0 : width,
2323
height: isNaN(height) ? 0 : height,
2424
zIndex,
25-
position
25+
position,
26+
opacity
2627
}
2728
}, [
2829
imagePosition.topLeft.x,
2930
imagePosition.topLeft.y,
3031
imagePosition.bottomRight.x,
3132
imagePosition.bottomRight.y,
3233
zIndex,
33-
position
34+
position,
35+
opacity
3436
])
3537

3638
return (

0 commit comments

Comments
 (0)