JSFiddle - React, Tailwind, and code Playground
by Kaique Covo
HTML
<div class="teste">
<img src="http://placekitten.com/200/150" />
<div class="pageflip"></div>
</div>
SCSS
.teste {
position: relative;
display: block;
width: 200px;
height: 150px;
margin: 2em auto;
overflow: hidden;
}
.teste:hover .pageflip {
width: 40px;
height: 40px;
box-shadow: -5px -5px 40px rgba(0,0,0,1);
}
.pageflip {
display: block;
position: absolute;
z-index: 1;
width: 0;
height: 0;
bottom: 0;
right: 0;
background-color: 'red';
background-size: 100%;
background-image: linear-gradient(to right bottom,#aaa 50%,#fff 51%);
transition: all 0.3s;
}