JSFiddle - React, Tailwind, and code Playground

HTML

<div class="div1"></div>
<div class="div2"></div>

CSS

div {
  width:100px;
  height: 100px;
}

.div1 {
  background: red;
  z-index: 2;
  transform: rotate(1deg);
}

.div2 {
  background: blue;
  transform: rotate(1deg);
  margin-top: -15vh;
  z-index: 1;
}