Struct style::stylesheets::keyframes_rule::KeyframesAnimation [] [src]

pub struct KeyframesAnimation {
    pub steps: Vec<KeyframesStep>,
    pub properties_changed: LonghandIdSet,
    pub vendor_prefix: Option<VendorPrefix>,
}

This structure represents a list of animation steps computed from the list of keyframes, in order.

It only takes into account animable properties.

Fields

The difference steps of the animation.

The properties that change in this animation.

Vendor prefix type the @keyframes has.

Methods

impl KeyframesAnimation
[src]

[src]

Create a keyframes animation from a given list of keyframes.

This will return a keyframe animation with empty steps and properties_changed if the list of keyframes is empty, or there are no animated properties obtained from the keyframes.

Otherwise, this will compute and sort the steps used for the animation, and return the animation object.

Trait Implementations

impl Debug for KeyframesAnimation
[src]

[src]

Formats the value using the given formatter. Read more

impl MallocSizeOf for KeyframesAnimation
[src]

[src]

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more