Resolves after the next animation frame if no parameter is given, or after the given number of animation frames.
Resolves after the next animation frame if no parameter is given, or after the given number of animation frames.