pub fn token_transition<T>(
id: impl Into<ElementId>,
target: T,
token: MotionToken,
window: &mut Window,
cx: &mut App,
) -> Twhere
T: Interpolate + PartialEq + 'static,Expand description
Follow an interpolatable target using the selected Material motion token.
Each channel ID must retain the same value type. Effects tokens preserve fades under reduced motion (Expressive keeps md3.io’s curves; Standard plays default and slow effects on m3e’s fast effects spring); spatial tokens finish immediately. Interpolation is supplied by the value, so color spaces and compound geometry need not be flattened into independent scalar clocks. Timing and retargeting belong to GPUI Base.