Thanks, @Shaun Gorneau ! What is the proper way to make this next "to " wait until function animation ends? Now, If I don't put any delay parameter to ".to" they start together. I don't want to put manual delay as duration of the animation in that function can change in the future.
Hi! Please see my codepen example. Why the timeline doesn't execute "to" command after function call? (the commented out variation of adding works, but is it correct?) I'm new to Js & GSAP so there may be issues with my code as I couldn't find similar issues on the forum. Thanks in advance!