view, moved by to on a spring (see fusuma_anim::SpringConfig for the presets).
The move is drawn by the tree on every frame and costs the view nothing: when to changes, the node glides to its new place instead of jumping.
Signature
pub const fn animate<V>( view: V, to: (i32, i32), spring: fusuma_anim::SpringConfig, ) -> Animated<V>Example
use fusuma::anim::SpringConfig;
use fusuma::{animate, text};
let view = animate(text("Slide"), (0, 4), SpringConfig::SPATIAL);
let built = fusuma::doc::built::<(), _>(&view);
assert_eq!(built.texts(), ["Slide"]);