Hello,
When i load my page, a picture slides in. Now, when i press on a link to go to another page, i need this image to slide out first.
Anyway i can resolve this with a tween ?
I guess i need to use the onComplete and then goto a function that loads the new page.
So, i'm not sure this is Greensock related . Could be a java question .
Anyway; ( can't get the code tag to work, it only shows a scrollbar )
<li id="NavLink"><a href="/somepage" ><span>SomePage</span></a></li>
$('#NavLink').click(function()
{
TweenLite.to(navImage, 1, {css:{left:"-700px"}, ease:Power2.easeOut});
});
I have a click function that should start the tween when i press the link, problem offcourse is that the new page loads imidiatly, and the ' going out' tween never starts. ( or maybe it does, we just won't see it ).
ps ( a one page design is not an option ).