css - When I use CSS3 scale to zoom an image, the visible area is smaller -
when use css3 scale zoom animage, image's size bigger, can't see whole image. though there scrollbar, can see part of image.
click link see demo.
var scale = 1; $('img').on('click',function(){ var new_scale = 2 * scale; $(this).css('-webkit-transform', 'scale(' + new_scale +')'); scale = new_scale; });
i'd know how can see whole image after css3 scale.
the css transform
property affects rendered content of element.
if want element's layout occupy more space, you'll need adjust width , height explicitly.
Comments
Post a Comment