timeline( )


Creates a new animation timeline.

A timeline is used to compose animations together over time. You can synchronize multiple animations on matched elements, control them as a whole, and precisely manage their timing.

Typically, after creating a new timeline, you add animation attributes and sequence them within the timeline using the add() function.

Control the timeline playback using the play(), reverse(), pause(), and replay() functions.

Use the timelineOptions parameter to specify whether the timeline repeats and how the repetitions are played.

Method Declaration
Copy
Method Parameters
timelineOptionsTimeLineOptions

Options to apply to the timeline.

Returns
Return Type:TimeLine
Was this helpful?
Yes
No