Animator:getDuration

Returns the duration of an animation.

duration = Animator:getDuration(name)

Arguments

NameTypeDescription
namestringThe name of the animation.

Returns

NameTypeDescription
durationnumberThe duration of the animation at its normal speed, in seconds.

See also