jQuery Captall is a plugin that creates captions on images or any DOM element.
jQuery Captall – Add a caption to everything
Download: https://github.com/wezy01/captall
Demonstration:
HTML element
<p><img src="images/sea.jpg" id="image" alt="Hi, I'm a caption" width="300" height="198" /></p>
Javascript call
$(document).ready(function() {
// Simple call
$('#image').captall();
// Call with options
$('#image').captall({
slideFrom: 'topcenter',
slideTo: 'center',
width: '50%',
height: '1/2'
});
});
Plugin homepage:
Implementation:
Options:
Screenshots: