Results 1 to 3 of 3

Thread: Animate single element with custom animation

  1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    32
    Answers
    2
    Vote Rating
    0
      0  

    Default 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
    Location
    Italy
    Posts
    1,395
    Answers
    148
    Vote Rating
    24
      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
    Owner at SIMACS

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

    TUX components bundle for Sencha Touch 2.x.x
    https://github.com/AndreaCammarata/TUX


  4. #3
    Sencha User
    Join Date
    Feb 2011
    Posts
    32
    Answers
    2
    Vote Rating
    0
      0  

    Default

    Thanks! That works!

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •