Bootstrap snippet. Box gallery images

This snippet was created to help web designers, front-end and back-end developer save time. Use it in your project and build your app faster,
You can also download the HTML, CSS, and JS code.
tags: images,gallery,users

HTML code

This is the html code used to create this bootstrap snippet, You can copy, paste, change, customize and run the following HTML code to get a result like the one shown in the preview selection

<div class="container">
<div class="superbox">
    <div class="superbox-list">
        <img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar1.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar2.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar3.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar4.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar5.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar3.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar2.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar2.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar3.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar5.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar2.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar4.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar1.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar2.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar3.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar4.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar5.png"  alt="" class="superbox-img">
	</div>
    <div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar2.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar3.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar4.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar5.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar1.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar2.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar2.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar3.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar4.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar5.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar5.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar4.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar4.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar1.png"  alt="" class="superbox-img">
	</div>
</div>
</div>

<div class="modal fade" id="showPhoto" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Modal title</h4>
      </div>
      <div class="modal-body">
        
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div>
  </div>
</div>

CSS code

This is the css code used to create this bootstrap snippet, You can copy, paste, change, customize and run the following CSS code to get a result Like the one shown in the preview selection

body{margin-top:20px;}


.superbox {
    font-size: 0
}

.superbox-list {
    display: inline-block;
    width: 12.5%;
    margin: 0;
    position: relative
}

.superbox-list.active:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    border: 10px solid transparent;
    border-bottom-color: #2d353c;
    margin-left: -10px
}

.superbox-show {
    text-align: center;
    position: relative;
    background: #2d353c;
    width: 100%;
    float: left;
    padding: 25px;
    display: none
}

.superbox-img {
    max-width: 100%;
    width: 100%;
    cursor: pointer
}

.superbox-current-img {
    -webkit-box-shadow: 0 5px 35px rgba(0, 0, 0, .65);
    box-shadow: 0 5px 35px rgba(0, 0, 0, .65);
    max-width: 100%
}

.superbox-img:hover {
    opacity: .8
}

.superbox-close {
    opacity: .7;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 25px;
    background: url(assets/plugins/superbox/img/close.gif) center center no-repeat;
    width: 35px;
    height: 35px
}

Javascript/Jquery code

This is the css code used to create this bootstrap snippet, You can copy, paste, change, customize and run the following JS code to get a result Like the one shown in the preview selection

$(function(){
    $('.superbox-img').click(function(){
        $('#showPhoto .modal-body').html($(this).clone());
        $('#showPhoto').modal('show');
    })
})
 

Similar snippets

Bootstrap widget user list example

widget user list

Bootstrap new team members example

new team members

Bootstrap Image Cards example

Image Cards

Bootstrap Members example

Members

Bootstrap bs4 edit profile page example

bs4 edit profile page

Bootstrap profile with data and skills example

profile with data and skills

Bootstrap Whatsapp web chat template example

Whatsapp web chat template

Bootstrap account setting or edit profile example

account setting or edit profile

Bootstrap snippets. Box gallery images

About this bootstrap snippet

This bootstrap snippet, Box gallery images, was published on Apr 30th 2016, 00:30 by Dey Dey and it is free.

We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.

We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.

This snippet currectly have 6.8K views, Using this bootstrap snippet you have the following benefits:

Bootstrap 3.3.6

This snippet is based on bootstrap 3.3.6 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

Jquery plugins

Great built-in plugins with jquery framework, you can easy to change all declarations

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This snippet can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working