Skip to main content

use_scroll_progress

Function use_scroll_progress 

Source
pub fn use_scroll_progress<T: 'static>(
    target: T,
    config: ScrollConfig,
) -> Signal<f32>
Expand description

Return scroll progress for a target.

The target argument is intentionally generic so Dioxus callers can pass renderer-specific mounted-element handles without coupling this crate to a single renderer. Non-web targets return a stable no-op signal.