1. #1
    Ext User
    Join Date
    Feb 2008
    Posts
    146
    Vote Rating
    0
    italoc is on a distinguished road

      0  

    Default viewport and simple fadein fadeout effect

    viewport and simple fadein fadeout effect


    i have a viewport (and his name is viewport) and would like to apply the effect fadein fadeout when is created or delete

    i try this:

    Code:
    viewport.fadeIn({
        endOpacity: 1, //can be any value between 0 and 1 (e.g. .5)
        easing: 'easeOut',
        duration: .5
    });
    but i receive a notification the fadein is not a function why? i need a particular library?

    thanks..

  2. #2
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    7
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    fadeIn needs to be applied to an element...

    Code:
    viewport.getEl().fadeIn({
        endOpacity: 1, //can be any value between 0 and 1 (e.g. .5)
        easing: 'easeOut',
        duration: .5
    });

Thread Participants: 1