1. #1
    Sencha User
    Join Date
    Jun 2011
    Location
    France
    Posts
    25
    Vote Rating
    0
    Answers
    2
    jeanrene is on a distinguished road

      0  

    Question Answered: Faq for animation / effect

    Hi,

    I'm trying to add some effects to my application but I don't really understand how to do it (for example to add an effect with show( [String/Ext.Element animateTarget], [Function callback], [Object scope] ) method when opening a popup, ...).
    Is there a faq or example to do it ?

    Thanks

  2. For the show() method there isn't much you can do by way of animation. The method allows you to specify an element, animateTarget, which be used to display an effect that makes the component being shown appear to launch out of the specified element.

    Other effects for showing things work directly with elements, not components, but that doesn't mean you can't use them. Usually you'd do component.getEl() and then apply an animation to that element. Then you can use effects like fadeIn() on it.

  3. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,773
    Vote Rating
    372
    Answers
    578
    skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute skirtle has a reputation beyond repute

      0  

    Default

    For the show() method there isn't much you can do by way of animation. The method allows you to specify an element, animateTarget, which be used to display an effect that makes the component being shown appear to launch out of the specified element.

    Other effects for showing things work directly with elements, not components, but that doesn't mean you can't use them. Usually you'd do component.getEl() and then apply an animation to that element. Then you can use effects like fadeIn() on it.

Thread Participants: 1

Tags for this Thread