1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! # animato-timeline
//!
//! Timeline composition for Animato animations.
//!
//! This crate provides [`Timeline`] for concurrent composition, [`Sequence`] for
//! chained animation steps, and [`stagger()`] for offsetting many animations by a
//! fixed delay.
//!
//! ## Quick Start
//!
//! ```rust
//! use animato_core::{Easing, Update};
//! use animato_timeline::{At, Timeline};
//! use animato_tween::Tween;
//!
//! let fade = Tween::new(0.0_f32, 1.0)
//! .duration(1.0)
//! .easing(Easing::EaseOutCubic)
//! .build();
//!
//! let slide = Tween::new(0.0_f32, 100.0).duration(0.5).build();
//!
//! let mut timeline = Timeline::new()
//! .add("fade", fade, At::Start)
//! .add("slide", slide, At::Offset(0.25));
//!
//! timeline.play();
//! timeline.update(0.5);
//! assert!(timeline.progress() > 0.0);
//! ```
//!
//! ## Feature Flags
//!
//! | Feature | Effect |
//! |---------|--------|
//! | `std` | Enables std-dependent features in core and tween, plus callbacks |
//! | `serde` | Derives `Serialize`/`Deserialize` on supported public enums |
//! | `tokio` | Enables [`Timeline::wait()`] completion futures |
extern crate alloc;
pub use Sequence;
pub use stagger;
pub use ;