benbarnett / jquery-animate-enhanced

Extend $.animate() to detect CSS transitions for Webkit, Mozilla, IE>=10 and Opera and convert animations automatically.
http://playground.benbarnett.net/jquery-animate-enhanced/
MIT License
1.39k stars 196 forks source link

animate(pos, options) doesn't seem to be supported #141

Open ThePromenader opened 10 years ago

ThePromenader commented 10 years ago

Thanks for bringing css3 animations to jQuery users!

Just one issue: animate(pos, options) doesn't seem to be supported -

screen shot 2013-12-06 at 09 24 23

...the delay and easing option are somehow picked up, but callbacks are ignored. Is there any way I can fix this myself?

Thanks, best,

Josef.

ThePromenader commented 10 years ago

...I managed to 'force' callback completion by setting the propertyCallback variable to 'speed.complete' (as the 'options' in a jQuery.animate(transform, options) command is being passed as 'speed' (second argument).

My problem may have something to do with the fact that I am animating two images simultaneously (and I need the queue:false option because the images must remain adjacent during the animation) - I'll test if the callbacks are being executed on a single image and let you know.

UPDATE ...apologies for this thread then, that ~is~ the problem! Callbacks on single-object animations execute perfectly.