I understand ,
its hard to do it , but basicly the request i have is :
a div , that on tween fade in complete will do 1 thing , and on tween fade
out complete will do something else.
since jquery has callback function -> its easy , and in mootools i have a
problem.
since the onComplete function will run for both fade in and 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 .....
>