Function dioxus_spring::use_spring

source ·
pub fn use_spring<T, V>(
    cx: Scope<'_, T>,
    from: V,
    to: V,
    duration: Duration,
    f: impl FnMut(V) + 'static
)where
    V: Lerp<Scalar = f32> + Clone + 'static,