Function leptos_dom::request_animation_frame
source · pub fn request_animation_frame(cb: impl FnMut() + 'static)
Expand description
Runs the given function between the next repaint
using Window.requestAnimationFrame
.
pub fn request_animation_frame(cb: impl FnMut() + 'static)
Runs the given function between the next repaint
using Window.requestAnimationFrame
.