Loading...

For detail documentation, Big Picture documentation

Bigpicture Image

BigPictures are integrated into nirvana. It allows you to display a thumbnail and when clicked, the original image will pop up.
The lightbox image works by wrapping anything ie. <img> tag inside an <a> element with the data attribute data-bigpicture. For example data-bigpicture={imgSrc:'source.jpg'}

<div class="row text-center mt-5">
  <div class="col-sm-4">
    <a href="#!" data-caption="caption" data-bigpicture='{"imgSrc":"../assets/images/about-header.jpg"}'>
      <img class="img-thumbnail" src="../assets/images/about-header.jpg" alt="" />
    </a>
  </div>
  <div class="col-sm-4">
    <a class="btn btn-primary" href="#!" data-bigpicture='{"imgSrc":"../assets/images/about-header.jpg"}' data-caption="caption">
      LightBox
    </a>
  </div>
</div>
Javascript
<script src="vendors/bigpicture/BigPicture.js"> </script>

Bigpicture gallery

You can easily create a gallery of lightbox images by data-bigpicture and data-bp attribute. For a specific gallery set an Id to the parent element and pass the id through data-bigpicture attribute. Use data-bp attribute to pass the image source.

<div class="row mt-5" id="image_gallery">
  <div class="col-sm-4 mb-4">
    <a href="#!" data-caption="caption" data-bigpicture='{"gallery":"#image_gallery"}' data-bp="../assets/images/gallery-1.jpg">
      <img class="rounded img-fluid" src="../assets/images/gallery-1.jpg" alt="" />
    </a>
  </div>
  <div class="col-sm-4 mb-4">
    <a href="#!" data-caption="caption" data-bigpicture='{"gallery":"#image_gallery"}' data-bp="../assets/images/gallery-2.jpg">
      <img class="rounded img-fluid" src="../assets/images/gallery-2.jpg" alt="" />
    </a>
  </div>
  <div class="col-sm-4 mb-4">
    <a href="#!" data-caption="caption" data-bigpicture='{"gallery":"#image_gallery"}' data-bp="../assets/images/gallery-7.jpg">
      <img class="rounded img-fluid" src="../assets/images/gallery-7.jpg" alt="" />
    </a>
  </div>
  <div class="col-sm-4 mb-4">
    <a href="#!" data-caption="caption" data-bigpicture='{"gallery":"#image_gallery"}' data-bp="../assets/images/gallery-10.jpg">
      <img class="rounded img-fluid" src="../assets/images/gallery-10.jpg" alt="" />
    </a>
  </div>
  <div class="col-sm-4 mb-4">
    <a href="#!" data-caption="caption" data-bigpicture='{"gallery":"#image_gallery"}' data-bp="../assets/images/gallery-5.jpg">
      <img class="rounded img-fluid" src="../assets/images/gallery-5.jpg" alt="" />
    </a>
  </div>
  <div class="col-sm-4 mb-4">
    <a href="#!" data-caption="caption" data-bigpicture='{"gallery":"#image_gallery"}' data-bp="../assets/images/gallery-6.jpg">
      <img class="rounded img-fluid" src="../assets/images/gallery-6.jpg" alt="" />
    </a>
  </div>
</div>
Javascript
<script src="vendors/bigpicture/BigPicture.js"> </script>