struct
MotionSpec
pub struct MotionSpec {
pub props: Vec<Prop>,
pub duration: f64,
pub delay: f64,
pub ease: Ease,
pub stagger: Option<Stagger>,
pub trigger: Trigger,
pub scroll: ScrollTrigger,
pub repeat: i32,
pub yoyo: bool,
}A parsed declarative animation.
Fields
Methods
from_attrs
pub fn from_attrs(get: impl Fn(&str) -> Option<String>) -> Option<MotionSpec>Read a spec from attribute values (get("motion-from") etc.; the motion attribute is a preset name). None when there's nothing to animate.