leptos_use

Function use_window_scroll

Source
pub fn use_window_scroll() -> (Signal<f64>, Signal<f64>)
Expand description

Reactive window scroll.

§Demo

Link to Demo

§Usage

let (x, y) = use_window_scroll();

§Server-Side Rendering

On the server this returns Signals that are always 0.0.