Expandable Image Gallery Using jQuery and Bootstrap

Expandable Image Gallery Using jQuery and Bootstrap

How to expandable image galley or portfolio using jquery and twitter bootstrap with grid system

Expandable Image Gallery Using jQuery and Bootstrap

Import Library

<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/gridex.css" rel="stylesheet">
<script src="js/jquery.js"></script>
<script src="js/bootstrap-gridex.min.js"></script>

Design Style

html, body {
  height: 100%;
  color: #656565;
}

a:focus {
  outline: none;
}

.wrapper {
  min-height: 100%;
  height: auto !important;
  height: 100%;
  margin: 0 auto -120px;
}
.footer, .push {
  height: 120px;
}

Use Script

$(function() {
  $('.gridex').gridex();
});

Make Content

<div class="container wrapper">
  <div class="clearfix"></div>
  <ul class="thumbnails gridex">
        <li class="span3 clearfix">
            <a href="#" class="thumbnail"> <img alt="270x170" src="http://placehold.it/270x170" /> </a>
            <!-- gd-expander required -->
            <div class="gd-expander">
                <!-- gd-inner optional -->
                 <div class="gd-inner">
                    <div class="row-fluid">
                        <div class="span6 text-center">
                            <img alt="270x170" class="img-polaroid" src="http://placehold.it/370x270" />
                        </div>
                        <div class="span6">
                            <h2>Heading text 1</h2>
                            <p>
                                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                            </p>
                            <a href="#" class="btn btn-success">Visit Website</a>
                        </div>
                    </div>
                </div>
            </div>
        </li>
  </ul>
  <div class="push"></div>
</div>

 

Tags: , , , , ,