Function dioxus_spring::use_spring_ref

source ยท
pub fn use_spring_ref<V>(from: V, f: impl FnMut(V) + 'static) -> UseSpringRef<V>
where V: Lerp<Scalar = f32> + Clone + 'static,
Expand description

Hook to animate a value from some initial value from.

The returned UseSpringRef can be used to queue and control animations. Values are linearly interpolated and sent to the handler f.