Expand description
Async support for transition sequencing.
TransactionRef implements std::future::IntoFuture,
so every set_* call on a Layer is directly await-able.
Use any async executor โ e.g. tokio::spawn โ to sequence transitions without nested
on_finish closures:
โ
tokio::spawn(async move {
layer.set_position((100.0, 0.0), Transition::ease_in(0.4)).await;
layer.set_opacity(0.0, Transition::ease_out(0.3)).await;
});Structsยง
- A future that resolves when a scheduled animation finishes.
- A future that resolves when a scheduled transition finishes.