aura-anim-core 0.2.2

Typed animation runtime and composable animation sources.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// A lifecycle command that can be sent to a runtime-managed animation.
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum AnimationCommand {
    /// Pause a running animation.
    Pause,
    /// Resume a paused animation.
    Resume,
    /// Cancel an animation.
    Cancel,
    /// Seek to normalized progress.
    Seek(f32),
    /// Move the animation to completion.
    Finish,
}