I wrote a small plugin some time ago that allows you to do what you need, and with an animation on hover. It was originally made to add hover background animations but I guess it should be able to do what you need.
/*
* jQuery Animate Background (v0.2)
* Copyright (c) 2009 Mario "Kuroir" Ricalde ( http://twitter.com/exolimpo )
* Usage:
* $("h1").animateBg();
* Con Campos Opcionales:
* $("div").animateBg({time:130,add:"span"});
*/
(function($){
$.fn.animateBg = function(opciones){
$.fn.animateBg.defecto = {
time : "fast", add : "span"
};
var config = $.extend({}, $.fn.animateBg.defecto, opciones);
this.each(function(){
var c = config;
var title = $(this).attr("title");
$(this).append("<"+ c.add +">" + title + "</"+ c.add +">").hover(function(){
$(this).children(c.add).fadeIn(c.time);
},function(){
$(this).children(c.add).fadeOut(c.time);
});
});
}
})(jQuery);
$(document).ready(function(){
$("#thumb-list p img").animateBg();
});
<div id="thumb-list">
<p><img src="lol.jpg" title="My title" /></p>
</div>
Sorry if the code doesn't work.. I couldn't test since I'm not at home.