Function leptos::request_animation_frame_with_handle
source · pub fn request_animation_frame_with_handle(
cb: impl FnOnce() + 'static
) -> Result<AnimationFrameRequestHandle, JsValue>
Expand description
Runs the given function between the next repaint using
Window.requestAnimationFrame
,
returning a cancelable handle.