Answer the question
In order to leave comments, you need to log in
Is it possible to wait for a RequestAnimationFrame to execute?
Can RequestAnimationFrame() work as a recursive function call? That is, for example, in the following code, after calling the method, the function will complete its work. I need to wait until requestAnimationFrame completes its work and only then exit the function
function f(){
requestAnimationFrame(f);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question