"Anirudha Bhowmik background image zoom"
Bootstrap 4.1.1 Snippet by anirudhabhowmik

<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="outer-div"> <div class="sliderbanner text-center"> <div class="para"> <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><!--sliderbanner--> </div> </div>
.sliderbanner{ background-image: url(../images/sliderbanner.jpg); background-repeat: no-repeat; background-position: center; background-size: cover; height: 401px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); transition: all 0.5s ease; } .outer-div { overflow: hidden; } .sliderbanner:hover { transform: scale(1.2); }

Related: See More


Questions / Comments: