"Thumbnail Hover without Javascript"
Bootstrap 3.1.0 Snippet by hasan

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="col-md-3">
<div class="thumbnail">
<div class="caption">
<h4>Thumbnail Headline</h4>
<p>short thumbnail description</p>
<p><a href="" class="label label-danger">Zoom</a>
<a href="" class="label label-default">Download</a></p>
</div>
<img src="http://lorempixel.com/400/300/sports/1/" alt="...">
</div>
</div>
<div class="col-md-3">
<div class="thumbnail">
<div class="caption">
<h4>Thumbnail Headline</h4>
<p>short thumbnail description</p>
<p><a href="" class="label label-danger">Zoom</a>
<a href="" class="label label-default">Download</a></p>
</div>
<img src="http://lorempixel.com/400/300/sports/2/" alt="...">
</div>
</div>
<div class="col-md-3">
<div class="thumbnail">
<div class="caption">
<h4>Thumbnail Headline</h4>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
body {
padding-top: 50px;
}
.thumbnail {
position:relative;
overflow:hidden;
}
.caption {
position:absolute;
top:-100%;
right:0;
background:rgba(66, 139, 202, 0.75);
width:100%;
height:100%;
padding:2%;
text-align:center;
color:#fff !important;
z-index:2;
-webkit-transition: all 0.5s ease-in-out;
-moz-transition: all 0.5s ease-in-out;
-o-transition: all 0.5s ease-in-out;
-ms-transition: all 0.5s ease-in-out;
transition: all 0.5s ease-in-out;
}
.thumbnail:hover .caption {
top:0%;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: