OK , i found a simple yet not a good looking solution.
tell me what you guys think .... I had to clean the event after each time 
.... 

/* the fade in */
$('page_login_wrapper').reveal().set("tween", {
                onStart: function() {
                    Dreams.Log.info('onStart hit');
                    $('content').mask();
                    pageLoginWrapper.get('tween').removeEvents('onStart');
                }
            }).fade('in'); 
/* the fade out */
 $('page_login_wrapper').dissolve().set("tween", {
            onComplete: function() {
                $('content').unmask();
                
$('page_login_wrapper').get('tween').removeEvents('onComplete');
            }
        }).fade('out'); 


On Monday, September 10, 2012 11:44:24 PM UTC+3, idan Hen wrote:
>
> Hey , 
>
> i have a site i am building , i have a content div and in my header i have 
> login button.
> when i click the login button , i mask the content div , and display a 
> float div above it.
>
> so far its all good :) , i have a close button to close the floating div 
> and unmask the content div.
>
> the issue is : 
> when i fade('out') , i want to unmask onComplete. -> the problem is this 
> effect the fade('in') also !!
>
> set("tween", {
>             onComplete: function(o) {
>                 $('content').unmask();
>             }
>         }).
>
> how can i set a "onComplete" to each fade ... -> they are both running on 
> the same element ..... 
>

Reply via email to