Hello, I am BRAND NEW to greensok and please bare with me. BTW I loved it at first sight.
I have the following pseudo code, with two functions that execute some animations let's say using to() method, namely minimise() and maximise(). Now when I call them from another function for example fooOne() what happens is that the main thread rushes in the minimise() function, starts the timeline animations then quickly returns to fooOne() and jumps into maximise() where it too starts the timeline animations. Now what I am getting is the animations in minimise() and maximise() running almost concurrently, how can I go about and only execute maximise after minimise finished?
I can do this with jQuery but I couldn't find any documentations or posts about this topic on the internet.
Regards.
function fooOne(){
minimise() ;
maximise() ;
}
function fooTwo(){
maximise() ;
}
function fooThree(){
minimise() ;
}
function minimise(){
var timeline = new TimelineLite();
timeline.to(........);
timeline.to(........);
// loads more animations below.
}
function maximise(){
var timeline = new TimelineLite();
timeline.to(........);
timeline.to(........);
// loads more animations below.
}