Trait silkenweb::elements::svg::attributes::AnimationTiming

source ·
pub trait AnimationTiming: Element {
    // Provided methods
    fn begin<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
       where T: AsAttribute<String> { ... }
    fn dur<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
       where T: AsAttribute<String> { ... }
    fn end<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
       where T: AsAttribute<String> { ... }
    fn min<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
       where T: AsAttribute<String> { ... }
    fn max<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
       where T: AsAttribute<String> { ... }
    fn restart<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
       where T: AsAttribute<String> { ... }
    fn repeat_count<'a, T>(
        self,
        value: impl RefSignalOrValue<'a, Item = T>
    ) -> Self
       where T: AsAttribute<String> { ... }
    fn repeat_dur<'a, T>(
        self,
        value: impl RefSignalOrValue<'a, Item = T>
    ) -> Self
       where T: AsAttribute<String> { ... }
    fn fill<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
       where T: AsAttribute<String> { ... }
}
Expand description

SVG animation timing attributes

Provided Methods§

source

fn begin<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The SVG begin attribute

The begin attribute defines when an animation should begin or when an element should be discarded.

The attribute value is a semicolon separated list of values. The interpretation of a list of start times is detailed in the SMIL specification in “Evaluation of begin and end time lists”. Each individual value can be one of the following : - <offset-value> - <syncbase-value> - <event-value> - <repeat-value> - <accessKey-value> - <wallclock-sync-value> - the keyword indefinite.

source

fn dur<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The SVG dur attribute

The dur attribute indicates the simple duration of an animation.

source

fn end<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The SVG end attribute

The end attribute defines an end value for the animation that can constrain the active duration.

source

fn min<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The SVG min attribute

The min attribute specifies the minimum value of the active animation duration.

source

fn max<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The SVG max attribute

The max attribute specifies the maximum value of the active animation duration.

source

fn restart<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The SVG restart attribute

The restart attribute specifies whether or not an animation can restart.

source

fn repeat_count<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The SVG repeatCount attribute

The repeatCount attribute indicates the number of times an animation will take place.

source

fn repeat_dur<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The SVG repeatDur attribute

The repeatDur attribute specifies the total duration for repeating an animation.

source

fn fill<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String>,

The SVG fill attribute

The fill attribute has two different meanings. For shapes and text it’s a presentation attribute that defines the color (or any SVG paint servers like gradients or patterns) used to paint the element; for animation it defines the final state of the animation.

Object Safety§

This trait is not object safe.

Implementors§