Type Alias style::values::specified::animation::AnimationTimeline

source ·
pub type AnimationTimeline = GenericAnimationTimeline<LengthPercentage>;
Expand description

A specified value for the animation-timeline property.

Aliased Type§

enum AnimationTimeline {
    Auto,
    Timeline(TimelineName),
    Scroll(ScrollFunction),
    View(GenericViewFunction<LengthPercentage>),
}

Variants§

§

Auto

Use default timeline. The animation’s timeline is a DocumentTimeline.

§

Timeline(TimelineName)

The scroll-timeline name or view-timeline-name. This also includes none value by using an empty atom. https://drafts.csswg.org/scroll-animations-1/#scroll-timeline-name https://drafts.csswg.org/scroll-animations-1/#view-timeline-name

§

Scroll(ScrollFunction)

The scroll() notation. https://drafts.csswg.org/scroll-animations-1/#scroll-notation

§

View(GenericViewFunction<LengthPercentage>)

The view() notation. https://drafts.csswg.org/scroll-animations-1/#view-notation

Trait Implementations§

source§

impl Parse for AnimationTimeline

source§

fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>

Parse a value of this type. Read more