To create a pop-up within a relative positioned box, you can use absolute positioning. Here's an example:
<div class="featured-image">
<div class="caption">
<p>Insert your text here</p>
</div>
</div>
Next, you can hide the caption until it is scrolled over using CSS:
.featured-image { position:relative; width:300px; height: 400px; }
.caption { position:absolute; bottom:0; display:none; }
.feature-image:hover > .caption { display:block; }
The last line ensures the caption is visible when hovering over the image.
You can then apply animations using jQuery, similar to what is being used in this code snippet:
$(document).ready(function(e) {
$(".caption").hide();
});
var show = function() {
$(".caption", this).stop(true, true).show(500)
};
var hide = function() {
$(".caption", this).stop(true, true).hide(500);
};
$(".featured-image").hover(show, hide);