Skip to content
An open-source jQuery plugin to easily and semantically add captions to images.
Branch: master
Clone or download
Pull request Compare This branch is 49 commits behind ericmagnuson:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
site
.gitignore
CHANGELOG.md
README.md
captionjs.css
captionjs.min.css
index.html
jquery.caption.js
jquery.caption.min.js

README.md

Documentation

Below is the basic setup for caption.js. For more info, please see captionjs.com.

$(window).load(function() {
    $('img.caption').captionjs({
		'class_name' : 'captionjs',  // Class name assigned to each <figure>
		'schema'     : true,         // Use schema.org markup (i.e., itemtype, itemprop)
		'mode'       : 'default',    // default | static | animated | hide
		'debug_mode' : false         // Output debug info to the JS console
    });
});
You can’t perform that action at this time.