Hi Zach,
My bad, I edited my code just before posting and forgot to call the function.
Here is my corrected edit:
animation.eventCallback("onComplete", flip,[[containerGrid], swapPosition]);
function swapPosition() {
final.appendChild(containerGrid);
}
The callback is still firing at the start of my animation.
I appreciate that my code seems overly complex. As I mentioned I'm just learning how to work with GSAP and I'm sure you can reflect back when you started out that your might have had some bloated code.
My overall goal is to have some intro animation start in the center of the screen. Once finished I would like the logo elements to scale down and to move to a position on the top left corner of the page.
Then I will fade out the background and reveal the website with the logo placed exactly where it would be for the website layout.
I would really like to learn how to make things less complex and appreciate the advice.