This is gonna be easy for you, but I've tried for hours and I can't figure it out.
Here's what I've done so far:
I've created a TimelineMax timeline and wrapped it in a function
The function accepts two arguments – one specifying the clicked part of the page and one for the other half
At a click event, the timeline starts to play with the desired animation depending on which side has been clicked
This works great, but I can't figure out how to reverse the whole thing. At the end of the animation, a "back button" appears and I want the timeline to animate backwards to the beginning (i.e. to the same view the visitors initially see) when the user clicks that button..
What code do I have to write on the lines 33 and 37 to achieve this?
Thank you very much in advance for your advice.