1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    32
    Answers
    2
    Vote Rating
    0
    Ayame is on a distinguished road

      0  

    Default Answered: Animate single element with custom animation

    Answered: Animate single element with custom animation


    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?

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

  2. Hi Ayame.
    Take a look at this Thread.

    http://www.sencha.com/forum/showthre...810-animations

    Hope this helps.

  3. #2
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,394
    Answers
    148
    Vote Rating
    22
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    Hi Ayame.
    Take a look at this Thread.

    http://www.sencha.com/forum/showthre...810-animations

    Hope this helps.
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    CEO at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    http://www.tux-components.com/


  4. #3
    Sencha User
    Join Date
    Feb 2011
    Posts
    32
    Answers
    2
    Vote Rating
    0
    Ayame is on a distinguished road

      0  

    Default


    Thanks! That works!

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

Thread Participants: 1