Skip to content

An open-source jQuery plugin to easily and semantically add captions to images.

Notifications You must be signed in to change notification settings

faitno/captionjs

 
 

Repository files navigation

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
		'force_dimensions': false        // Force the dimensions in case they can't be detected (e.g., image is not yet painted to viewport)
    });
});

About

An open-source jQuery plugin to easily and semantically add captions to images.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 75.4%
  • JavaScript 24.3%
  • Other 0.3%