set Animation Params
Sets duration and interpolator for the given Animation object.
Return
the input Animation with duration and interpolator set
Parameters
animation
The Animation object to modify.
duration
Amount of time (in milliseconds) for the animation to run.
accelerate
Whether to use the accelerate interpolator or the decelerate interpolator.