pub type AnimationTimeline = GenericAnimationTimeline<LengthPercentage>;
Expand description
A computed 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