javascript - Bootstrap image zoom -


i doing e-commerce site. use bootstrap. should use when doing product detail page? want follows.

enter image description here

i want picture grow when comes picture.

here have code may you, grow image pure css.

css

* {   -moz-box-sizing: border-box;   -webkit-box-sizing: border-box;   box-sizing: border-box;   margin: 0;   padding: 0; }  .hoverdiv {   position: relative;   overflow: hidden;   border:1px solid black;   width:360px;   margin: 10px; }  .hoverdiv img {   max-width: 100%;   text-align:center;   -moz-transition: 0.3s;   -webkit-transition: 0.3s;   transition: 0.3s; }  .hoverdiv:hover img {   -moz-transform: scale(1.1);   -webkit-transform: scale(1.1);   transform: scale(1.1); }  img {     display: inline-block;     border: 1px solid #ddd;     border-radius: 4px;     padding: 5px;     transition: 0.3s;   position:relative;   z-index:1; }  img:hover {     box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);    -webkit-transform: skewx(-20deg);   -ms-transform: skewx(-20deg);   transform: skewx(-20deg);   -webkit-transform-origin:0 0;   -ms-transform-origin:0 0;   transform-origin:0 0; } 

html

<div class="hoverdiv"> <img src="http://pngimg.com/upload/tiger_png546.png" alt="smiley face"> </div> 

demo

grow image on hover


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -