Skip to main content

TransitionState

Type Alias TransitionState 

Source
pub type TransitionState<T> = Animated<T, Instant>;
Expand description

The state behind a Transition: an Animated that reads the clock from Instant.

Create one with cx.new(|_| TransitionState::new(initial, motion)) and pass it to Transition::new. Window::use_keyed_transition does that for you.

Aliased Typeยง

pub struct TransitionState<T> { /* private fields */ }