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
"thumnail zoom"
Bootstrap 3.3.0 Snippet by
erda19
3.3.0
Preview
HTML
CSS
View Full Screen
Fork
Fork this
4.3K
 
2 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="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <h3>Thumbnail Images</h3> <div class="row"> <div class ="col-md-3 zoom col-centered"> <img class="thumbnail" class="img-responsive" src="https://kravelindo-adventure.com/wp-content/uploads/2015/08/junior-4-930x310-300x100-300x100.jpg"> </div> <div class ="col-md-3 zoom col-centered"> <img class="thumbnail" class="img-responsive" src="https://kravelindo-adventure.com/wp-content/uploads/2015/08/junior-4-930x310-300x100-300x100.jpg"> </div> <div class ="col-md-3 zoom col-centered"> <img class="thumbnail" class="img-responsive" src="http://www.qygjxz.com/data/out/114/4676052-image.png"></div> </div> </div> </div>
/**THE SAME CSS IS USED IN ALL 3 DEMOS**/ /**gallery margins**/ ul.gallery{ margin-left: 3vw; margin-right:3vw; } .zoom { -webkit-transition: all 0.35s ease-in-out; -moz-transition: all 0.35s ease-in-out; transition: all 0.35s ease-in-out; cursor: -webkit-zoom-in; cursor: -moz-zoom-in; cursor: zoom-in; } .zoom:hover, .zoom:active, .zoom:focus { /**adjust scale to desired size, add browser prefixes**/ -ms-transform: scale(1.5); -moz-transform: scale(15); -webkit-transform: scale(1.5); -o-transform: scale(1.5); transform: scale(1.5); position:relative; z-index:100; } /**To keep upscaled images visible on mobile, increase left & right margins a bit**/ @media only screen and (max-width: 768px) { ul.gallery { margin-left: 15vw; margin-right: 15vw; } /**TIP: Easy escape for touch screens, give gallery's parent container a cursor: pointer.**/ .DivName {cursor: pointer} } } .title { width:100%; height:10%; background-color: #00ff00; } .col-centered{ display: table; margin: auto; } .thumbnail { width:300px; height:100px; }
Related:
See More
Template
Paper Dashboard Pro
97.1K
132
Zoom Social Icon Hover Animation
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76