"Thumbnail Caption Hover Effect BS 2"
Bootstrap 3.2.0 Snippet by gilangdarmawan

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.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="col-md-4"> <div class="thumbnail"> <img src="http://lorempixel.com/400/300/sports/1/" alt="..."> <div class="caption text-center"> <h1></h1>test</h1> </div> </div> </div> </div><!-- /.container -->
body { padding-top: 50px; } .thumbnail { position:relative; overflow:hidden; } .caption { position:absolute; top:0; right:0; background:rgba(202, 139, 202, 0.75); width:100%; height:100%; padding:2%; display: none; color:#fff !important; z-index:2; }
$( document ).ready(function() { $("[rel='tooltip']").tooltip(); $('.thumbnail').hover( function(){ $(this).find('.caption').slideUp(250); //.fadeIn(250) }, function(){ $(this).find('.caption').slideDown(250); //.fadeOut(205) } ); });

Related: See More


Questions / Comments: