pub struct TransitionConfig {
    pub imgs: Vec<String>,
    pub title: String,
    pub n_imgs: f32,
    pub duration_per_image: f32,
    pub transition_time: f32,
    pub animation_delay: f32,
    pub duration_total: f32,
}
Expand description

Store all

Fields

imgs: Vec<String>title: Stringn_imgs: f32duration_per_image: f32transition_time: f32animation_delay: f32duration_total: f32

Implementations

From a list of images, generator all the animation values for CSS.

Return a vec of tuples, for declaring the keyframes of the CSS transition animation. Tuples are e.g. (0, 1) where 0 is 0% of progress through the animation, and 1 is “opacity: 1”.

Emit full in-line HTML for application. The img-src attributes are the only external resources loaded.

Trait Implementations

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.