View Full Version : Animate single element with custom animation

14 Sep 2011, 4:13 AM
I'm trying to animate an element (panel, div, doesn't matter) with a custom animation but can't get it to work. I've tried using the example code on the dev docs, but still it fails to work. The element changes width, but does not process the animation nor does it fire the callback function.

Suggestions anyone?

duration: 500,
easing: 'elasticIn',
callback: function(){ console.log("finished"); },
scope: this

14 Sep 2011, 5:25 AM
Hi Ayame.
Take a look at this Thread.


Hope this helps.

15 Sep 2011, 2:06 AM
Thanks! That works!

Was the method I was using a deprecated method then? It is literally taken from the Sencha Docs...