"Anirudha Bhowmik zoom image inside a box"
Bootstrap 4.1.1 Snippet by anirudhabhowmik

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/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 ---------->
<div class="container">
<div class="item">
<img src="images/sliderbanner.jpg" alt="sliderbanner">
<div class="item-overlay top"></div>
</div><!--item-->
<div class="para text-center">
<p>Example Product</p>
<p>123</p>
<a href="zoom.html"><button type="button" class="addcart"><span>ADD TO CART</span></button></a>
</div><!--para-->
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.item {
position: relative;
overflow: hidden;
}
.item img {
width: 100%;
-moz-transition: all 0.3s;
-webkit-transition: all 0.3s;
transition: all 0.3s;
height: 270px;
cursor: all-scroll;
}
.item:hover img {
-moz-transform: scale(1.1);
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
.para{
background-color: #000;
padding-bottom: 15px;
}
.para p{
font-size: 20px;
color: #fff;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: