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
"Image hover effect with caption CSS3"
Bootstrap 4.0.0 Snippet by
dilipkevat1991
4.0.0
hover
caption
Preview
HTML
CSS
View Full Screen
Fork
Fork this
17.1K
 
5 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!--product-area-left-slide-effect--> <div class="container" style="margin-top:80px;"> <div class="row"> <div class="col-lg-12"> <h1 class="theme-heading">Image hover effect with caption CSS3 (Left Slide Effect)</h1> </div> <!--01--> <div class="col-lg-4 col-sm-6"> <div class="product-list-left-effect"> <img src="http://placehold.it/600x500/9c27b0/fff" class="img-fluid" /> <div class="product-overlay"> <h3>Product 1</h3> <p>Cras pharetra lorem a arcu cursus consequat. Vivamus aliquet molestie tellus, porta</p> </div> </div> </div> <!--01--> <!--02--> <div class="col-lg-4 col-sm-6"> <div class="product-list-left-effect"> <img src="http://placehold.it/600x500/4caf50/fff" class="img-fluid" /> <div class="product-overlay"> <h3>Product 2</h3> <p>Cras pharetra lorem a arcu cursus consequat. Vivamus aliquet molestie tellus, porta</p> </div> </div> </div> <!--02--> <!--03--> <div class="col-lg-4 col-sm-6"> <div class="product-list-left-effect"> <img src="http://placehold.it/600x500/c37808/fff" class="img-fluid" /> <div class="product-overlay"> <h3>Product 3</h3> <p>Cras pharetra lorem a arcu cursus consequat. Vivamus aliquet molestie tellus, porta</p> </div> </div> </div> <!--03--> </div> </div> <!--product-area-left-slide-effect-->
/*product-list-hover-slide-effect*/ .product-list-left-effect { width:100%; height:auto; position:relative; margin-bottom:20px; overflow:hidden; } .product-list-left-effect img { transition-duration:0.4s; } .product-list-left-effect .product-overlay { width:90%; height:90%; position:absolute; padding:20px; background:rgba(0, 0, 0, 0.7); color:#fff; top:5%; left:-100%; transition-duration:0.4s; -webkit-transition: left 0.5s ease-in-out; } .product-list-left-effect .product-overlay h3 { margin:0 0 12px 0; } .product-list-left-effect:hover .product-overlay { /*opacity:1;*/ -webkit-transition: left 0.5s ease-in-out; left:5%; } .product-list-left-effect:hover img { transform: scale(1.1); } /*product-list-hover-slide-effect*/ /*theme-heading*/ .theme-heading { text-align:center; margin-bottom:2rem; font-weight:300; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76