I’ve got a function that moves a div and another function complete callback function that does some other stuff that prepares the div to move again. Therefore I can’t write:
somefunction(1,2);
somefunction(1,2);
because it won’t execute the second animation, because it is not ready yet in complete callback function. How do I execute it after the complete callback function is finished?
Thanks.
You can pass the second function as a callback to the first