Skip to content

struct

Prop

pub struct Prop {
    pub name: String,
    pub from: Option<String>,
    pub to: Option<String>,
}

One animated property: optional explicit start, and the end value. A missing from means "the current value"; a missing to (a from() tween) means "back to the current value".

Fields

name

pub name: String

The property: a CSS property or transform shorthand (x, opacity).

from

pub from: Option<String>

The value it starts from.

to

pub to: Option<String>

The value it ends at.

Trait implementations