"Slidy Panel Footer"
Bootstrap 3.1.0 Snippet by bryanrojasq

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
<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-2 col-sm-6 col-xs-6">
<div class="panel panel-default">
<div class="panel-body">
<h2>Hover me</h2>
<p>I will show the footer panel</p>
</div>
<div class="panel-footer">Panel footer</div>
</div>
</div>
<div class="col-md-2 col-sm-6 col-xs-6">
<div class="panel panel-default">
<div class="panel-body">
<h2>Hover me</h2>
<p>I will show the footer panel with a Badge</p>
</div>
<div class="panel-footer"><a href="#"><span class="badge">42</span></a></div>
</div>
</div>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.panel-default{
text-align:center;
cursor:pointer;
font-family: 'Raleway',sans-serif;
}
.panel-default > .panel-footer {
color: #fff;
background-color: #47c8ed;
display:none;
text-shadow: 1px 1px 1px rgba(150, 150, 150, 1);
}
.panel-default i{
font-size: 5em;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
$(function(){
$('.panel').hover(function(){
$(this).find('.panel-footer').slideDown(250);
},function(){
$(this).find('.panel-footer').slideUp(250); //.fadeOut(205)
});
})
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: