JSFiddle - React, Tailwind, and code Playground
by HDL52
HTML
<div id="stack">
<img src="https://raw.githubusercontent.com/Hongda-OSU/PicGo-2.3.1/master/imgtumblr_pvl5j3H1r81qeyvpto1_500.gif">
</div>
CSS
body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: wheat;
}
#stack {
border: 6px solid #fff;
float: left;
width: 200px;
height: 300px;
margin: 50px;
position: relative;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
img {
width: 100%;
height: 100%;
object-fit: cover;
}
#stack:before {
content: "";
width: 200px;
height: 300px;
background: #768590;
position: absolute;
z-index: -1;
top: 0px;
left: -10px;
transform: rotate(-10deg);
border: 6px solid #fff;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
#stack:after {
content: "";
width: 200px;
height: 300px;
background: #768590;
position: absolute;
z-index: -1;
top: 5px;
left: 0px;
transform: rotate(6deg);
border: 6px solid #fff;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}