Jump to content
GreenSock

ThrowPropsPlugin.calculateTweenDuration()

ThrowPropsPlugin.calculateTweenDuration( ) : Number

Returns : Number

The duration (in seconds) that the tween should use.

Details

Analyzes various throwProps variables (like initial velocities, max/min values, and resistance) and determines the appropriate duration. Typically it is best to use the ThrowPropsPlugin.to() method for this, but calculateTweenDuration() could be convenient in some cases.

Copyright 2017, GreenSock. All rights reserved. This work is subject to theterms of useor for Club GreenSock members, the software agreement that was issued with the membership.
×