Image description in gallery

Issue #52 open
Former user created an issue

Hello, I've tried many lightbox versions and Superbox is my favorite.

Is there a way to include descriptive text within the window? I'm specifically looking to have a description continue through an entire gallery of photos.
Thank you!

Comments (1)

  1. Pierre Bertet repo owner
    • changed status to open

    Yes, it’s an option I definitely have to add to SuperBox: https://bitbucket.org/bpierre/jquery-superbox/src/351e80228f31/jquery.superbox.js#cl-6

    You can try to do it yourself with the wait(), open() and close() methods (available in dev version).

    A quick (untested!) example, HTML5 flavor ;-)

    $.superbox.wait(function(){
      // When the image is loaded:
      $.superbox.open(
        '<figure>\
          <img src="image_src.jpg" alt="Alternative text">\
          <figcaption>Your caption.</figcaption>\
        </figure>', {
        // SuperBox! settings
      });
    });
    
  2. Log in to comment