lightGallery version 2 has been released. Please upgrade

# Lightgallery methods

This is just a demonstration of how to use lightgallery methods. You can find more methods here

#### HTML structure

    <div id="methods">
      <a href="img/img1.jpg">
          <img src="img/thumb1.jpg" />
      </a>
      <a href="img/img2.jpg">
          <img src="img/thumb2.jpg" />
      </a>
      ...
    </div>

#### Javascript

    var $methods = $('#methods');
    var slide = '<a href="img/img2.jpg">' +
        '<img src="img/thumb2.jpg" />' +
    '</a>';

    $methods.lightGallery();
    $('#appendSlide').on('click', function() {
        $methods.append(slide);
        $methods.data('lightGallery').destroy(true);
        $methods.lightGallery();
    });

## More demos

Thumbnails
Youtube/Vimeo Videos
HTML5 Videos
Transitions
Dynamic
Events
Methods
Iframe
Captions
Responsive
fixed Size
Html Markup
Comment box
Easing
Hash plugin
Share