- edited to tidy up ---
Demo version of the final code on
: http://jsfiddle.net/thewebdes/LDs6C/
: http://jsfiddle.net/thewebdes/jY2e2/1/
HTML
<div class="thumbnail">
<img src="http://chuvachienes.com/wp-content/uploads/2009/07/hello.jpg" width="200"/>
<div class="description">
<p>content here content here content here content here content here content here content here content here content here content here content here content here content here content here content here content here content here content here content here content here</p>
</div>
</div>
CSS
.thumbnail { background: #000; width: 200px; height: 200px; overflow: hidden; }
.description { display: none; position: relative; top: -190px; left: 10px; color: #FFF; font-weight: bold; }
JS
$('.thumbnail').hover(function() {
$('.thumbnail img').stop(true,true).fadeTo(400, 0.2);
$('.description').stop(true,true).fadeIn(400);
}, function() {
$('.thumbnail img').stop(true,true).fadeTo(400, 1);
$('.description').stop(true,true).fadeOut(400);
});
, , , , , . , , cursor: pointer .description p, , .