S
S
Sneiksus2021-05-02 18:53:43
JavaScript
Sneiksus, 2021-05-02 18:53:43

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 question

Ask a Question

731 491 924 answers to any question