JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container content">
<!-- CONTENT -->
<div class="row">
<hr>
<h1 class="main-header">New projects in collections</h1>
<div class="row-fluid">
<div class="col-lg-3 fullwidth filled">
<a href="#">
<img src="http://file.answcdn.com/answ-cld/image/upload/h_320,c_fill,g_face:center,q_60/v1/tk/view/answ-images/4ba462cf/6e4e202093cb453ca22bbd079112c0394790db80.jpg">
</a>
<div class="wrap">
<div class="title">
<a href="/img/main2.jpg">Some title here</a>
<div>
24.99 $
</div>
</div>
<div class="subtitle">
<a href="#" class="half-subtitle eye">
Info
</a>
<a href="#" class="half-subtitle buck">
Buy
</a>
</div>
</div>
</div>
</div>
<!-- CONTENT -->
</div><!-- /.container -->
CSS
html, body{
}
.navbar {
min-height: 70px;
border-radius: 0px;
margin-bottom: 0px;
}
.navbar-inverse .navbar-nav>li>a {
color: #777;
font-size: 16px;
font-weight: 700;
text-transform: uppercase;
}
.navbar-nav>li>a {
padding-top: 25px;
padding-bottom: 25px;
}
.navbar-brand {
height: 70px;
padding: 22px 25px;
font-size: 30px;
line-height: 20px;
}
.navbar-form {
padding: 11px 25px;
margin-top: 8px;
}
footer{
background: #000;
width: 100%;
padding: 15px 10px;
color: #999999;
}
.container.content{
/* margin-top: 70px;*/
padding-top: 0px;
width: 100%;
max-width: 1920px !important;
padding: 0px;
box-sizing: border-box;
}
.container.content>.row{
padding: 0 15px;
margin: auto 0px;
}
.pagged-20{
padding: 20px 0px;
}
.carousel{
width: 100%;
}
.filled{
background: #ddd;
}
.fullwidth{
position: relative;
padding: 0px;
overflow: hidden;
}
.fullwidth>img, .fullwidth>a>img{
width: 100%;
}
.wrap{
position: absolute;
bottom: -130px;
/* height: 130px;*/
left: 0px;
background: rgba(255,255,255,0.9);
text-align: center;
width: 100%;
display: none;
-webkit-transition: all 3s 1s;
transition: all 3s 1s;
}
.show_info{
bottom: 0px;
opacity: 1;
-webkit-transform:rotate(180deg);
transform:rotate(180deg);
}
.box {
border-style: solid;
border-width: 1px;
display: block;
width: 100px;
height: 100px;
position: absolute;
top: 0px;
opacity: 0.1;
background-color: #0000FF;
-webkit-transition: all 0.2s 0.5s;
transition: all 0.2s 0.5s;
}
.box_ani {
background-color: #FFCCCC;
width:200px;
height:200px;
top: 0px;
opacity: 1;
}
.wrap .subtitle{
position: absolute;
bottom: 0px;
width: 100%
}
.wrap .half-subtitle:link{
float: left;
width: 50%;
font-size: 1.7em;
color: #fff;
line-height: 1.5em;
padding: 5px 0 0...
JavaScript
$(document).ready(function(){
Action();
})
function Action(){
$('.fullwidth .wrap, .fullwidth>a').each(function(){
$(this).on({
mouseenter: function(){
$(this).parent().find('.wrap').show().addClass('show_info');
//alert();
},
mouseleave: function(){
$(this).parent().find('.wrap').hide().removeClass('show_info');
}
});
});
}