JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="https://rawgit.com/codrops/DirectionAwareHoverEffect/master/js/jquery.hoverdir.js"></script>
<div class="container">
<section>
<ul id="thumbs" class="thumbs">
<li>
<img src="http://placehold.it/300x250" />
<div>
<span>Some Description</span>
<a href="#" class="btn btn-default"></a>
<a href="#" class="btn btn-primary"></a>
</div>
</li>
<li>
<img src="http://placehold.it/300x250" />
<div>
<span>Some Other Description</span>
<a href="#" class="btn btn-default"></a>
<a href="#" class="btn btn-primary"></a>
</div>
</li>
<li>
<img src="http://placehold.it/300x250" />
<div>
<span>Another One</span>
<a href="#" class="btn btn-default"></a>
<a href="#" class="btn btn-primary"></a>
</div>
</li>
</ul>
</section>
</div>
CSS
.thumbs {
list-style: none;
width: 984px;
height: 600px;
position: relative;
margin: 20px auto;
padding: 0;
}
.thumbs li {
float: left;
margin: 5px;
background: #fff;
padding: 8px;
position: relative;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.thumbs li a,
.thumbs li a img {
display: block;
position: relative;
}
.thumbs li a {
overflow: hidden;
}
.thumbs li a div {
position: absolute;
background: #333;
background: rgba(75,75,75,0.7);
width: 100%;
height: 100%;
}
.thumbs li a div span {
display: block;
padding: 10px 0;
margin: 40px 20px 20px 20px;
text-transform: uppercase;
font-weight: normal;
color: rgba(255,255,255,0.9);
text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
border-bottom: 1px solid rgba(255,255,255,0.5);
box-shadow: 0 1px 0 rgba(0,0,0,0.1), 0 -10px 0 rgba(255,255,255,0.3);
}
JavaScript
$(function() {
$(' #thumbs > li ').each( function() {
$(this).hoverdir({
hoverDelay : 60
});
});
});