Skip to content

enum

Action

pub enum Action {
    Play,
    Pause,
    Resume,
    Reverse,
    Restart,
    Reset,
    Complete,
    None,
}

What to do on each crossing (GSAP's toggleActions).

Variants

Play

Play

Play forwards.

Pause

Pause

Pause.

Resume

Resume

Carry on from where it was paused.

Reverse

Reverse

Play backwards.

Restart

Restart

Play from the start.

Reset

Reset

Go back to the start and stop.

Complete

Complete

Jump to the end.

None

None

Do nothing.

Trait implementations