PDA

View Full Version : ExtJS Animations



SoccerGee
21 Sep 2012, 7:31 AM
I'm looking to enhance some of my UI with some basic animations. Is there any support for this in the framework?

crysfel
21 Sep 2012, 8:14 AM
Sure, there is! Take a look a the Ext.util.Animation class: http://docs.sencha.com/ext-js/4-1/#!/api/Ext.util.Animate



var p1 = Ext.get('myElementId'); //Getting a dom element by ID

p1.animate({
duration: 100,
to: {
opacity: 0
}
});

SoccerGee
21 Sep 2012, 8:18 AM
this is great! Thanks.