1. #1
    Sencha User
    Join Date
    Feb 2008
    Posts
    194
    Vote Rating
    -1
    hpet is an unknown quantity at this point

      0  

    Default animate margin property

    animate margin property


    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!

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    58
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Code:
    Ext.lib.Anim.motion(myDomElement, {
        'margin-left': {to: 200},
        duration: 1.0,
        easing: 'easeNone'
    }).animate();

Similar Threads

  1. Animate help
    By perrin4869 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 6 Oct 2009, 2:49 AM
  2. How to animate CSS property with Ext?
    By paladinjack in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 19 Nov 2007, 10:50 AM
  3. animate Window
    By HarryC in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 25 Oct 2007, 7:09 AM

Thread Participants: 1