Is it possible to animate the zoom animation
I've tried this but it is just the same as using the css property to set it.
$(this).animate({
zoom: 0.5
}, 500);
Height animations work etc
Is it possible to animate the zoom animation
I've tried this but it is just the same as using the css property to set it.
$(this).animate({
zoom: 0.5
}, 500);
Height animations work etc
Try this :
-moz-transform: scale(2);
-webkit-transform: scale(2);
-o-transform: scale(2);
**, but currently you cannot animate them with basic jQuery.
However, you can use a jQuery plugin for that, like jquery.transform.js.
Please note the IE9 also supports the transform property, I found some info about it in this SO question.**
You can even do in this way with jQuery :
jQuery(this).hover(function() {
jQuery(this).animate({
marginTop: '-10px', //Bring image to top a little bit
marginLeft: '-10px',
width: '30px', //Zoom by 30 px
height: '30px'
}, 500); /* 500 is the speed of how fast/slow image animates */
} , function() {
jQuery(this).animate({
width: '15px', //Bring image back to original size
height: '15px'
}, 500);
});