Function egui_animation::animate_position
source ยท pub fn animate_position(
ui: &mut Ui,
id: impl Hash + Sized,
value: Pos2,
time: f32,
easing: fn(_: f32) -> f32,
scroll_correction: bool,
) -> Pos2
Expand description
Animate a position. Useful to e.g. animate swapping items in a list. This is basically a wrapper around animate_eased that animates both x and y. It will try to correct for scrolling, since in egui, scroll will change a widgets y position.