Bootstrap snippet. image gellery

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: gallery,images

wave

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

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<section class="content-item" id="gallery">
    <div class="container">
        <div class="content-headline">
            <h2>Image gallery</h2>
            <h3>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</h3>
        </div>
        
        <div class="row">
            <!-- GALLERY ITEM 1 - START -->
            <div class="overlay-wrapper col-xs-6 col-sm-3">
                <img src="https://via.placeholder.com/350x300/DDA0DD/000000" class="img-responsive" alt="">
                <span class="overlay">
                    <a href="#assets/images/image_01.JPG" class="show-image"><i class="fa fa-plus"></i></a>
                    <a href="#" class=""><i class="fa fa-link"></i></a>
                </span>
            </div>
            <!-- GALLERY ITEM 1 - END -->
            
            <!-- GALLERY ITEM 2 - START -->
            <div class="overlay-wrapper col-xs-6 col-sm-3">
                <img src="https://via.placeholder.com/350x300/000080/000000" class="img-responsive" alt="">
                <span class="overlay">
                    <a href="#assets/images/image_02.JPG" class="show-image"><i class="fa fa-plus"></i></a>
                    <a href="#" class=""><i class="fa fa-link"></i></a>
                </span>
            </div>
            <!-- GALLERY ITEM 2 - END -->
            
            <!-- GALLERY ITEM 3 - START -->
            <div class="overlay-wrapper col-xs-6 col-sm-3">
                <img src="https://via.placeholder.com/350x300/EEE8AA/000000" class="img-responsive" alt="">
                <span class="overlay">
                    <a href="#assets/images/image_03.JPG" class="show-image"><i class="fa fa-plus"></i></a>
                    <a href="#" class=""><i class="fa fa-link"></i></a>
                </span>
            </div>
            <!-- GALLERY ITEM 3 - END -->
            
            <!-- GALLERY ITEM 4 - START -->
            <div class="overlay-wrapper col-xs-6 col-sm-3">
                <img src="https://via.placeholder.com/350x300/FFDAB9/000000" class="img-responsive" alt="">
                <span class="overlay">
                    <a href="#assets/images/image_04.JPG" class="show-image"><i class="fa fa-plus"></i></a>
                    <a href="#" class=""><i class="fa fa-link"></i></a>
                </span>
            </div>
            <!-- GALLERY ITEM 4 - END -->
        
            <!-- GALLERY ITEM 5 - START -->
            <div class="overlay-wrapper col-xs-6 col-sm-3">
                <img src="https://via.placeholder.com/350x300/AFEEEE/000000" class="img-responsive" alt="">
                <span class="overlay">
                    <a href="#assets/images/image_05.JPG" class="show-image"><i class="fa fa-plus"></i></a>
                    <a href="#" class=""><i class="fa fa-link"></i></a>
                </span>
            </div>
            <!-- GALLERY ITEM 5 - END -->
            
            <!-- GALLERY ITEM 6 - START -->
            <div class="overlay-wrapper col-xs-6 col-sm-3">
                <img src="https://via.placeholder.com/350x300/98FB98/000000" class="img-responsive" alt="">
                <span class="overlay">
                    <a href="#assets/images/image_06.JPG" class="show-image"><i class="fa fa-plus"></i></a>
                    <a href="#" class=""><i class="fa fa-link"></i></a>
                </span>
            </div>
            <!-- GALLERY ITEM 6 - END -->
            
            <!-- GALLERY ITEM 7 - START -->
            <div class="overlay-wrapper col-xs-6 col-sm-3">
                <img src="https://via.placeholder.com/350x300/DDA0DD/000000" class="img-responsive" alt="">
                <span class="overlay">
                    <a href="#assets/images/image_07.JPG" class="show-image"><i class="fa fa-plus"></i></a>
                    <a href="#" class=""><i class="fa fa-link"></i></a>
                </span>
            </div>
            <!-- GALLERY ITEM 7 - END -->
            
            <!-- GALLERY ITEM 8 - START -->
            <div class="overlay-wrapper col-xs-6 col-sm-3">
                <img src="https://via.placeholder.com/350x300/663399/000000" class="img-responsive" alt="">
                <span class="overlay">
                    <a href="#assets/images/image_08.JPG" class="show-image"><i class="fa fa-plus"></i></a>
                    <a href="#" class=""><i class="fa fa-link"></i></a>
                </span>
            </div>
            <!-- GALLERY ITEM 8 - END -->
        </div>
    </div>
</section>

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;}

/*----------------------------*/

.content-item {
    padding:30px 0;
	background-color:#FFFFFF;
}

.content-item.grey {
	background-color:#F0F0F0;
	padding:50px 0;
	height:100%;
}

.content-item h2 {
	font-weight:700;
	font-size:35px;
	line-height:45px;
	text-transform:uppercase;
	margin:20px 0;
}

.content-item h3 {
	font-weight:400;
	font-size:20px;
	color:#555555;
	margin:10px 0 15px;
	padding:0;
}

.content-headline {
	height:1px;
	text-align:center;
	margin:20px 0 70px;
}

.content-headline h2 {
	background-color:#FFFFFF;
	display:inline-block;
	margin:-20px auto 0;
	padding:0 20px;
}

.grey .content-headline h2 {
	background-color:#F0F0F0;
}

.content-headline h3 {
	font-size:14px;
	color:#AAAAAA;
	display:block;
}


#gallery .row {
    margin:0;
}

#gallery .row > div {
	padding:0;
}

#gallery .overlay-wrapper:hover .overlay {
	background-color:rgba(0,0,0,0.7);
}

#gallery-item h2 {
	font-size:28px;
	margin-top:0;
}

#gallery-item img {
	background-color:#FFFFFF;
	border:3px solid #999999;
	padding:7px;
}

.overlay-wrapper {
    position:relative;
}

.overlay-wrapper .overlay {
    bottom:0;
    left:0;
    opacity:0;
    overflow:hidden;
    position:absolute;
    right:0;
    top:0;
	text-align:center;
	padding-top:25%;
	transition:all 0.4s ease;
}

.overlay-wrapper .overlay a {
	font-size:20px;
	width:50px;
	height:50px;
	color:#FFFFFF;
	display:inline-block;
	text-align:center;
	padding-top:12px;
	border-radius:50%;
	margin-right:15px;
	opacity:0.8;
}

.overlay-wrapper .overlay a:last-child {
	margin-right:0;
}

.overlay-wrapper .overlay a:hover {
	background-color:#333333;
	color:#FFFFFF;
}

.overlay-wrapper:hover .overlay {
	background-color:rgba(0,0,0,0.5);
	opacity:1;
}

Similar snippets

Bootstrap Image gallery with effects example

Image gallery with effects

Bootstrap Timeline with small images example

Timeline with small images

Bootstrap Gallery of images example

Gallery of images

Bootstrap bs4 widget image cards example

bs4 widget image cards

Bootstrap about me Login Style example

about me Login Style

Bootstrap Search Results example

Search Results

Bootstrap contacts card example

contacts card

Bootstrap Blog Gallery Widget example

Blog Gallery Widget

Comments

Bootstrap snippets. image gellery

About this bootstrap snippet

This bootstrap snippet, image gellery, was published on Mar 12th 2016, 20:55 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 3.3K 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