JSFiddle - React, Tailwind, and code Playground
HTML
<!--
End Fixed Navigation
==================================== -->
<!--
Home Slider
==================================== -->
<div id="mainarea">
<div class="title">
<h1>This is a simple sample title </h1>
<h2>This Sentence Simply Must Be Longer Than Above</h2>
</div>
<div class='form animated flipInX'>
<h2>Sign up Today</h2>
<form>
<input placeholder='Your Email Address' type='text'>
<button class='animated infinite pulse'>Let's Go!</button>
</form>
</div>
<div class="title">
<h3>In the middle</h3>
</div>
</div>
CSS
#mainarea {
height:900px;
background: #2ecc71 no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
font-family: "Roboto";
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#mainarea::before {
z-index: -1;
content: '';
position: fixed;
top: 0;
left: 0;
background: white;
/* IE Fallback */
background: white;
width: 100%;
height: 100%;
}
.form {
top: 50%;
left: 50%;
background: #fff;
width: 325px;
margin: 0 auto;
padding: 40px;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}
.form h2 {
margin: 0 0 20px;
line-height: 1;
color: #2ecc71;
text-align:center;
font-size: 20px;
font-weight: 420;
}
.form input {
outline: none;
display: block;
width: 100%;
margin: 0 0 20px;
padding: 10px 15px;
border: 1px solid #ccc;
color: #ccc;
font-family: "Roboto";
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
font-size: 14px;
font-wieght: 400;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-transition: 0.2s linear;
-moz-transition: 0.2s linear;
-ms-transition: 0.2s linear;
-o-transition: 0.2s linear;
transition: 0.2s linear;
}
.form input:focus {
color: #333;
border: 1px solid #2ecc71;
}
.form button {
cursor: pointer;
background: #2ecc71;
width: 100%;
padding: 10px 15px;
border: 0;
color: #fff;
font-family: "Roboto";
font-size: 18px;
font-weight: 400;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-transition: 0.2s linear;
-moz-transition: 0.2s linear;
-ms-transition: 0.2s linear;
-o-transition: 0.2s linear;
transition: 0.2s linear;
}
.form button:hover {
background: #27ae60;
}
.title{
width:100%;
}
.title...