g2mac
19 Jan 2010, 9:26 AM
Hello!
I'm playing with animation effects. I'm just making an image growing up on mouseover with el.hover():
Img.hover(function(e,el) {
Img.shift({
width : bigWidth,
height: bigHeight,
x : newX,
y : newY,
duration: 1
});
},function(e,el) {
if (Img.hasActiveFx()) {
Img.stopFx();
}
});
But when I do 'MouseOut' while running the effect my image immediately becomes bigWidth and bigHeight. This is not what I'm waiting for. I'd like to get intermediate size.
How?
I'm playing with animation effects. I'm just making an image growing up on mouseover with el.hover():
Img.hover(function(e,el) {
Img.shift({
width : bigWidth,
height: bigHeight,
x : newX,
y : newY,
duration: 1
});
},function(e,el) {
if (Img.hasActiveFx()) {
Img.stopFx();
}
});
But when I do 'MouseOut' while running the effect my image immediately becomes bigWidth and bigHeight. This is not what I'm waiting for. I'd like to get intermediate size.
How?