JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container" id="rotate-x">
    <div class="panel will-distort">rotateX( 45deg )</div>
</div>

CSS

.container {
    border: 1px solid #CCCCCC;
    height: 200px;
    margin: 0 auto 60px;
    perspective: 600px;
    position: relative;
    width: 200px;
}
.panel {
    background: none repeat scroll 0 0 red;
    color: white;
    height: 100%;
    opacity: 0.7;
    position: absolute;
    width: 100%;
}
.will-distort {
    transform:rotate3d(10, 10, 10, 45deg)
}