FloatTweenSpec
Class
Common
public class FloatTweenSpec(
public val duration: Int = DefaultDurationMillis,
public val delay: Int = 0,
private val easing: Easing = FastOutSlowInEasing,
) : FloatAnimationSpec
FloatTweenSpec
animates a Float value from any start value to any end value using a provided
easing
function. The animation will finish within the duration
time. Unless a delay
is
specified, the animation will start right away.
Parameters
duration | the amount of time (in milliseconds) the animation will take to finish. Defaults to DefaultDurationMillis |
delay | the amount of time the animation will wait before it starts running. Defaults to 0. |
easing | the easing function that will be used to interoplate between the start and end value of the animation. Defaults to FastOutSlowInEasing . |