How about using the CSS3 transform property and using scale , which have a poor scaling effect, you can do this
HTML
<div class="thumbnail"> <div class="image"> <img src="http://placehold.it/320x240" alt="Some awesome text"/> </div> </div>
CSS
.thumbnail { width: 320px; height: 240px; } .image { width: 100%; height: 100%; } .image img { -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -ms-transition: all 1s ease; -o-transition: all 1s ease; transition: all 1s ease; } .image:hover img { -webkit-transform:scale(1.25); -moz-transform:scale(1.25); -ms-transform:scale(1.25); -o-transform:scale(1.25); transform:scale(1.25); }
Here is the fiddle demo. I removed part of the element to make it simpler, you can always add overflow hidden to .image to hide overflow of the scaled image.
zoom property only works in IE
Mitch Layzell Apr 02 '13 at 6:33
source share