PDA

View Full Version : animate margin property



hpet
25 Aug 2010, 8:26 AM
Hello,

I am trying to animate a margin-left property.
From the docs I see margin is among things that can be animated, I just can't make it to work.
Does anyone have any example?

Thank you!

Animal
25 Aug 2010, 9:57 AM
Ext.lib.Anim.motion(myDomElement, {
'margin-left': {to: 200},
duration: 1.0,
easing: 'easeNone'
}).animate();