Skip to main content

apply_animated_props

Function apply_animated_props 

Source
pub fn apply_animated_props(css: &mut CssStyle, props: &AnimatedProperties)
Expand description

Apply the resolved animation properties as a partial CSS override on top of an existing CssStyle. Only properties that the animator actually touched (vs. their Default sentinels) are written.

Order matters: the resulting transform list mirrors the legacy paint order (translate → scale → rotate → 3D rotate). Matching transform-origin is the box centre, which the paint pass already defaults to.