duration

fun duration(duration: Float): TweenAnimation

Sets the duration of the animation.

Return

This TweenAnimation object, for method chaining.

Parameters

duration

The duration of a single playback cycle, in seconds. Must be greater than 0.