JSFiddle - React, Tailwind, and code Playground

by Maulik Anand

HTML

<div class="landing-cover">
    <div class="img"></div>
    <div class="grad-overlay"></div>
    <div class="desc">
        <h1>Title</h1>
        <p>30/20/2014</p>
    </div>
    <div class="figcaption">
        Caption
    </div>
</div>

CSS

.landing-cover {
  /* force the div to properly contain the floated images: */
  position:relative;
  float:left;
  clear:none;
  overflow:hidden;
}
.landing-cover .img {
    width:500px;
    height:500px;
  position:relative;
  z-index:1;
}

.grad-overlay {
  display:block;
  position:absolute;
  background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,0.65))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.35) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.35) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.35) 100%); /* IE10+ */
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.35) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 ); /* IE6-9 */
 -moz-border-radius: 10px;
 -webkit-border-radius: 10px;
  border-radius: 10px;
  height: 100%;
  width:100%;
  top:0;
  left:0;
  z-index:1;
}

.desc {
  display:block;
  position:absolute;
  width:100%;
  top:35%;
  left:0;
  z-index:2;
  text-align:center;

}

.landing-cover h1 {
	font-family: 'Parisienne';
    font-size: 4em;
	color: #fff;
}

.landing-cover p {
    font-size: 2em;
	color: #fff;
}

.figcaption {
	z-index: 4;
	position: absolute;
	
	height: 50px;
	width: 100%;
	
	bottom: 0;
	-webkit-transform: translateY(100%);
	-moz-transform: translateY(100%);
	-ms-transform: translateY(100%);
	transform: translateY(100%);
	-webkit-transition: -webkit-transform 0.4s, opacity 0.1s 0.3s;
	-moz-transition: -moz-transform 0.4s, opacity 0.1s 0.3s;
	transition: transform 0.4s, opacity 0.1s 0.3s;
}

.landing-cover:hover .figcaption{
	opacity: 1;
	-webkit-transform: translateY(0px);
	-moz-transform:...