JSFiddle - React, Tailwind, and code Playground
by HDL52
HTML
<div class="container">
<div class="content">
<img src="https://raw.githubusercontent.com/Hongda-OSU/PicGo-2.3.1/master/imgodr8vukcwco0h34p0ngc84462vs454j.jpg">
</div>
</div>
CSS
.container {
width: 100%;
height: 100vh;
perspective: 1000px;
position: relative;
transform-origin: center center;
overflow: hidden;
}
.content {
width: auto;
height: auto;
border-radius: 20px;
transform: rotateY(-54deg) rotateX(10deg) rotateZ(13deg);
position: absolute;
right: -60px;
top: 60px;
box-sizing: border-box;
padding: 16px;
}
img {
width: 500px;
height: 300px;
object-fit: cover;
}