#[repr(C)]pub struct StyleAnimation {
pub name: AzString,
pub duration: CssDuration,
pub delay: CssDuration,
pub iterations: AnimationIterationCount,
pub timing: AnimationTiming,
pub clip: bool,
}Expand description
One entry of animation / -azul-animation-in / -azul-animation-out.
Grammar: <name> <duration> [<delay>] [<timing>] [infinite | <count>],
e.g. flyOutRight 1s, all 2s ease-out, spin 1s linear infinite,
fooFunc 500ms 200ms spring.
Fields§
§name: AzStringWhat runs: all / a property name (for animation, the diff-driven
transition scope), a @keyframes name, or a registered native
animation function name.
duration: CssDurationHow long ONE iteration takes. Springs ignore this for settling (they run on physics) but use it as the retarget time base.
delay: CssDurationWall-clock wait before the first iteration starts (staggered list entrances). Zero when omitted. CSS order rule: the FIRST time value in the shorthand is the duration, the second is the delay.
iterations: AnimationIterationCountinfinite or a play count; 1 when omitted.
timing: AnimationTimingTiming; ease when omitted.
clip: boolWhether a presence EXIT driven by this animation is clipped to the
node’s retained rect (so its motion cannot paint over neighbouring
components). true when omitted; the CSS keyword no-clip clears it
(USER ruling 2026-08-17: configurable, default clipped). Native
animation functions may still override per frame via
ZombieFrame::clip_to_frozen_rect.
Trait Implementations§
Source§impl Clone for StyleAnimation
impl Clone for StyleAnimation
Source§fn clone(&self) -> StyleAnimation
fn clone(&self) -> StyleAnimation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more