Function silkenweb::task::on_animation_frame
source · pub fn on_animation_frame(f: impl FnOnce() + 'static)
Expand description
Run a closure on the next animation frame.
An animation frame will be requested with requestAnimationFrame
.