JSFiddle - React, Tailwind, and code Playground
HTML
<div class="a3"></div>
CSS
div{
width: 200px;
height: 100px;
margin: 50px 0;
position:relative;
background: black;
}
div:after{
content:'';
width: 100px;
height: 100px;
position: absolute;
left: 100%;
top: 0;
background: transparent;
transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);
z-index: -2;
margin: 0 0 0 -50px;
}
div:before{
content:'';
position:absolute;
top: 0;
right: 0;
height: 100%;
padding: 22px 0;
z-index: -1;
background: #fff;
margin: -22px 0;
width: 100%;
}