Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Photo Gallery"
Bootstrap 3.3.0 Snippet by
silentcoding
3.3.0
gallery
Preview
HTML
CSS
View Full Screen
Fork
Fork this
10.0K
 
4 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!-- instagram: www.instagram.com/programmingtutorial site: programlamadersleri.net --> <section id="gallery"> <div class="container"> <div class="row"> <div class="col-lg-4 col-xs-12 img-space"> <div class="gallery"> <a href="https://images.pexels.com/photos/403571/pexels-photo-403571.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" target="_blank"> <img class="img-responsive" src="https://images.pexels.com/photos/403571/pexels-photo-403571.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb"/> <span class="overlay">+</span> </a> </div> </div> <div class="col-lg-4 col-xs-12 img-space"> <div class="gallery"> <a href="https://images.pexels.com/photos/346731/pexels-photo-346731.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" target="_blank"> <img class="img-responsive" src="https://images.pexels.com/photos/346731/pexels-photo-346731.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb"/> <span class="overlay">+</span> </a> </div> </div> <div class="col-lg-4 col-xs-12 img-space"> <div class="gallery"> <a href="https://images.pexels.com/photos/6332/coffee-cup-books-home.jpg?w=1260&h=750&auto=compress&cs=tinysrgb" target="_blank"> <img class="img-responsive" src="https://images.pexels.com/photos/6332/coffee-cup-books-home.jpg?w=1260&h=750&auto=compress&cs=tinysrgb"/> <span class="overlay">+</span> </a> </div> </div> <div class="col-lg-6 col-xs-12 img-space"> <div class="gallery"> <a href="https://images.pexels.com/photos/2097/desk-office-pen-ruler.jpg?w=1260&h=750&auto=compress&cs=tinysrgb" target="_blank"> <img class="img-responsive" src="https://images.pexels.com/photos/2097/desk-office-pen-ruler.jpg?w=1260&h=750&auto=compress&cs=tinysrgb"/> <span class="overlay2">+</span> </a> </div> </div> <div class="col-lg-6 col-xs-12 img-space"> <div class="gallery"> <a href="https://images.pexels.com/photos/276720/pexels-photo-276720.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb" target="_blank"> <img class="img-responsive" src="https://images.pexels.com/photos/276720/pexels-photo-276720.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb"/> <span class="overlay2">+</span> </a> </div> </div> </div> </section>
img{ width:100; } .gallery a { position: relative; display: block; } .overlay { background-color: rgba(0, 0, 0, 0.8); color: #fff; cursor: pointer; display: block; font-size: 100px; height: 100%; width: 100%; padding-top:40px; top: 0; left: 0; opacity: 0; overflow: hidden; position: absolute; text-align: center; transition: all 1s ease; } .overlay2{ background-color: rgba(0, 0, 0, 0.8); color: #fff; cursor: pointer; display: block; font-size: 100px; height: 100%; width: 100%; padding-top:100px; top: 0; left: 0; opacity: 0; overflow: hidden; position: absolute; text-align: center; transition: all 1s ease; } .gallery a:hover .overlay , .gallery a:hover .overlay2 { opacity: 0.8; } .img-space{ margin:20px 0px; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76