JSFiddle - React, Tailwind, and code Playground

by Kelly Hawker

HTML

<div id="test"></div>

CSS

#test {
    width: 200px;
    height: 200px;
    -webkit-transition: all 300ms ease-in;
     background: black;
    position: relative;
}

#test:after {
    display: block;
    content: "";
    color: transparent;
    width: 215px;
    height: 50px;
    background: white;
    position: absolute;
    left: -10px;
    bottom: -20px;
    -webkit-transform: rotate(12deg);
    -moz-transform: rotate(12deg);
}
#test:before {
    bottom: auto;
    top: -20px;
    -webkit-transform: rotate(-12deg);
    -moz-transform: rotate(-12deg);
}