pub fn request_animation_frame(cb: impl FnOnce() + 'static)
Expand description

Runs the given function between the next repaint using Window.requestAnimationFrame.