Skip to main content

token_value

Function token_value 

Source
pub fn token_value(
    id: impl Into<ElementId>,
    target: f32,
    token: MotionToken,
    window: &mut Window,
    cx: &mut App,
) -> f32
Expand description

Follow a target with a semantic token. A scheme switch takes effect after the active transition (including interruptions) settles, so it cannot replace the easing underneath GPUI Base’s existing transition clock.