108saimon
Community Answers
-
108saimon's post in onComplete not work correctly or i dumb? was marked as the answer
Sorry, a find answer.
Need use some like :
$('a').click(function(e){ event.preventDefault(); var thishref = this.getAttribute('href'); TweenMax.to('body', 1 , {opacity: 0, onComplete : href_redirect, onCompleteParams:[thishref] }); // use onCompleate + onCompleteParams }); function href_redirect(t_href) { document.location.href=t_href; }