HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

animation-timeline

Description

The animation-timeline property for CSS specifies the timeline used with the animation.

Syntax

CSS

animation-timeline: value;

JS

object.style.animationTimeline = "value";

Values

<'animation-timeline'> = <single-animation-timeline>#
<single-animation-timeline> = auto | none | <custom-ident> | <scroll()> | <view()>
auto

Automatically specified by the user agent.

none

The animation is not associated with a timeline.

<custom-ident>

Specifies any valid identifier that is not misinterpreted as a keyword.

<scroll()> = scroll( [ <scroller> || <axis> ]? )
<scroller> = root | nearest | self
root

Specifies to use the document viewport as the scroll container.

nearest

Specifies to use the nearest ancestor scroll container.

self

Specifies to use the element’s own principal box as the scroll container. If the principal box is not a scroll container, then the scroll progress timeline is inactive.

<axis> = block | inline | vertical | horizontal
block

Specifies to use the measure of progress along the block axis of the scroll container.

inline

Specifies to use the measure of progress along the inline axis of the scroll container.

vertical

Specifies to use the measure of progress along the vertical axis of the scroll container.

horizontal

Specifies to use the measure of progress along the horizontal axis of the scroll container.

<view()> = view( [ <axis> || <'view-timeline-inset'> ]? )
<axis> = block | inline | vertical | horizontal
block

Specifies to use the measure of progress along the block axis of the scroll container.

inline

Specifies to use the measure of progress along the inline axis of the scroll container.

vertical

Specifies to use the measure of progress along the vertical axis of the scroll container.

horizontal

Specifies to use the measure of progress along the horizontal axis of the scroll container.

<'view-timeline-inset'> = [ [ auto | <length-percentage> ]{1,2} ]#
auto

Automatically specified by the user agent.

<length-percentage> =
    <length> |
    <percentage>
<length>

Specifies the length using a number followed by a unit of measurement.

<percentage>

Specifies the percentage using a number followed by a percent sign (%).

Initial

auto

Examples

1 · auto

2 · none

3 · custom-ident

4 · scroll · scroller · root

5 · scroll · scroller · nearest

6 · scroll · scroller · self

7 · scroll · axis · block

8 · scroll · axis · inline

9 · scroll · axis · vertical

10 · scroll · axis · horizontal

11 · view · axis · block

12 · view · axis · inline

13 · view · axis · vertical

14 · view · axis · horizontal

15 · view · view-timeline-inset · auto

16 · view · view-timeline-inset · length-percentage

17 · JS