JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<div class="scene3D">
<div class="flip">
<div>
<header class="banner">
<span style="font-size: 20px; letter-spacing: 2px; font-weight: bold">Header..</span><br>
<span style="font-size: 12px">Something something</span>
</header>
<div class="flipBody">
<input type="text" style="width: 400px"><br>
<input type="text" style="width: 450px"><br>
<select style="width: 400px">
<option value="val1">Industry</option>
<option value="val2">Slot Two</option>
<option value="val3">Slot Three</option>
<option value="val4">Slot Four</option>
</select><br>
<input type="text" style="width: 450px" placeholder="If "Other", please specify">
<br>
<input type="button" style="width: 455px; height: 40px; margin-top: 95px; background-color: #446b96; color: #fff" value="Button">
</div>
</div>
<div>
<img src="http://www.indats.com/wp-content/themes/clifden/assets/img/placeholder/ratio-32.png">
</div>
</div>
</div>
</div>
CSS
img
{
/*height: 200px;*/
width: 100%;
/*border-radius*/
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.container
{
display: block;
width: 500px;
height: 460px;
margin: 30px auto;
}
.scene3D
{
display: block;
float: left;
margin: 10px;
/*border-radius*/
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
/*perspective*/
-webkit-perspective: 500px;
-moz-perspective: 500px;
-ms-perspective: 500px;
-o-perspective: 500px;
perspective: 500px;
}
.flip div
{
position: absolute;
/*border-radius*/
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
/*backface-visibility*/
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-o-backface-visibility: hidden;
backface-visibility: hidden;
}
.flip div:first-child
{
width: 500px;
height: 460px;
/*border-radius*/
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background: #f4f4f4;
/*transform*/
-webkit-transform: rotateX(180deg);
-moz-transform: rotateX(180deg);
-ms-transform: rotateX(180deg);
-o-transform: rotateX(180deg);
transform: rotateX(180deg);
}
.flip
{
width: 500px;
height: 460px;
/*border-radius*/
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
/*box-shadow*/
-webkit-box-shadow: 0 0 5px rgba(0,0,0,0.3);
-moz-box-shadow: 0 0 5px rgba(0,0,0,0.3);
box-shadow: 0 0 5px rgba(0,0,0,0.3);
/*transform*/
-webkit-transform: rotateX(0deg);
-moz-transform: rotateX(0deg);
-ms-transform: rotateX(0deg);
-o-transform: rotateX(0deg);
transform: rotateX(0deg);
/*transition*/
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
...