JSFiddle - React, Tailwind, and code Playground

HTML

<div class="wrap">
    <img src="http://alpatriott.ru/works/primer/images/romashki.jpg" alt="" width="300" height="300">
</div>

<div class="wrap">
    <img src="http://alpatriott.ru/works/primer/images/romashki.jpg" alt="" width="400" height="300">
</div>

<div class="wrap">
    <img src="http://alpatriott.ru/works/primer/images/romashki.jpg" alt="" width="300" height="400">
</div>

CSS

body{
padding:25px;
background:#222;    
}

.wrap{
display: inline-block;
margin: 25px;
position:relative;
overflow:hidden;
}

.wrap>img{
display:block;
}

.wrap:before{
content:'';
position:absolute;
top:-100%;
right:0;
width:200%;
height:100%;
background: rgba(255,255,255,0.3);

-moz-transform-origin: right bottom;
-moz-transform: rotate(-25deg);

}