Reputation: 2016
hello i have simple div with 500x500 in html page including jQuery. i want to use image in div, on image click it will zoom within div. image size 1320x917. and also i can scroll image with mouse.
HTML code :
<div class="div1">
<img src="imag1.png" />
</div>
CSS code :
.div1{
width:500px;
height:500px;
}
Upvotes: 1
Views: 3300
Reputation: 862
You can use JQuery plugin for image zooming functionality. Please have a look at this
Upvotes: 0
Reputation: 1779
try this css:
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
demo:
https://jsfiddle.net/bqtd7xef/1/
Upvotes: 0