onReverseComplete( )


Sets an event handler that runs when the timeline completes playing in the reverse direction.

The event handler set by calling the onReverseComplete() function runs when a timeline completes playing in reverse by reaching the beginning.

When a timeline has been set to repeat, the event handler runs at the end of the last repetition and does not run for the preceding repetitions.

If an event handler is already set for onReverseComplete, setting a new event handler overrides the one set previously.

To remove an event handler you set previously, call the onReverseComplete() function and pass null for the handler parameter.

Method Declaration
Copy
Method Parameters
handlerFunctionRequired

The name of the function or the function expression to run when the timeline completes playing.

Returns
Return Type:TimeLine
Did this help?