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

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -