Skip to main content

animate_offset_as_state

Function animate_offset_as_state 

Source
pub fn animate_offset_as_state(
    target: (f32, f32),
    spec: AnimationSpec,
) -> Animated<(f32, f32)>
Expand description

A translation in dp the Renderer animates to whenever target changes. Drawn as a transform, so the layout does not move.