1. #1
    Sencha User tdikarim's Avatar
    Join Date
    Jun 2007
    Location
    Belgium - Brussel
    Posts
    142
    Vote Rating
    0
    tdikarim is an unknown quantity at this point

      0  

    Default Answered: event slideout animation

    Answered: event slideout animation


    Hi All,

    How to detect a slideOut animation is finished ?

    Code:
    Ext.get("MENUNAV_cmd").slideOut('r', {
        easing: 'easeOut',
        duration: slideDuration,
        remove: false,
        useDisplay: false
    });
    
    //I want to apply this only when the slideOut animation is finished
    Ext.get("MENUNAV_img_nouvelle_commande").dom.outerHTML = '<img id="MENUNAV_img_cmd" src="imag
    
    es/MenuNavigation/cmd_up_fr.png">';
    Ext.get("MENUNAV_cmd").slideIn('l', {
    	easing: 'easeIn',
    	duration: slideDuration
    });
    Thanks for your help
    Tamditi Karim

  2. I'd use the callback param on the animation:

    Code:
    Ext.get("MENUNAV_cmd").slideOut('r', {
        easing: 'easeOut',
        duration: slideDuration,
        remove: false,
        useDisplay: false,
        callback: function () {
            // do something after the slideout animation is complete ...
        }
    });

  3. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,012
    Answers
    384
    Vote Rating
    183
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    I'd use the callback param on the animation:

    Code:
    Ext.get("MENUNAV_cmd").slideOut('r', {
        easing: 'easeOut',
        duration: slideDuration,
        remove: false,
        useDisplay: false,
        callback: function () {
            // do something after the slideout animation is complete ...
        }
    });

  4. #3
    Sencha User tdikarim's Avatar
    Join Date
    Jun 2007
    Location
    Belgium - Brussel
    Posts
    142
    Vote Rating
    0
    tdikarim is an unknown quantity at this point

      0  

    Default


    Thanks
    that's work like a charm
    Tamditi Karim

Thread Participants: 1

Tags for this Thread