How to create hover text caption with jquery

<script>
$(document).ready(function(){
$(‘.imgCaption’).css(‘opacity’, ‘0’);
$(‘.singleImgHolder’).hover(function(){
$(this).find(‘.imgCaption’).animate({bottom:’0px’,opacity:0.5},function(){
})
}
,function(){
$(this).find(‘.imgCaption’).animate({bottom:’-10px’,opacity:0});
})
});
</script>

Live example

Leave a Reply

Your email address will not be published. Required fields are marked *