JSFiddle - React, Tailwind, and code Playground
by Fernando Rojo
HTML
<div class="container">
<div class="bg" />
</div>
CSS
.container {
height: 90vh;
position: relative;
max-width: 100%;
overflow: hidden;
perspective: 2000px;
height: 900
}
.bg {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 110%;
background-image: url('https://res.cloudinary.com/dn29xlaeh/image/upload/q_100,h_1200/v1/beatgig-updated/ltwSOYOyx07wDcYlGO02zTvcu06u4r');
background-size: cover;
transform: rotateY(-20deg) rotateX(20deg) scale(2);
position: absolute;
top: -10%;
left: 0;
minWidth: 800;
}
body {
margin: 0
}