Function dioxus_spring::use_spring

source ยท
pub fn use_spring<V>(value: V, duration: Duration) -> Signal<V>
where V: PartialEq + Lerp<Scalar = f32> + Clone + 'static,
Expand description

Hook to create an animated signal from a reactive value and Duration.

When value is changed, this signal will linearly interpolate from the current value to value.