JSFiddle - React, Tailwind, and code Playground

by darcyclarke

HTML

<div class="box" style="background-image: url(http://i.huffpost.com/gen/784488/thumbs/o-THE-HOBBIT-POSTER-570.jpg?7);">
    <div class="side" style="background-image: url(http://i.huffpost.com/gen/784488/thumbs/o-THE-HOBBIT-POSTER-570.jpg?7);"></div>
    <div class="bottom"></div>
</div>

CSS

* {
    box-sizing: border-box;
}

.box {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 250px;
    height: 400px;
    background-size: cover;
}

.side {
    width: 5px;
    height: 400px;
    position: absolute;
    right: -5px;
    top: 3px;
    background-size: auto 100%;
    background-position: right center;
    transform: skewY(45deg);
}

.side:before, .bottom:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;    
    background: rgba(255,255,255,0.15);
}

.bottom {
    width: 250px;
    height: 5px;
    position: absolute;
    left: 3px;
    bottom: -5px;
    background-size: 100% auto;
    background-position: left bottom;
    transform: skewX(45deg);
}

.bottom:before {
    background-color: black;     
 }