PDA

View Full Version : How to 'stop' animation and going on from this step?



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?

g2mac
21 Jan 2010, 7:16 AM
Noone can help?

mikermcneil
17 Feb 2011, 2:14 PM
Also trying to figure this out.