FloatTweenSpec
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
the amount of time (in milliseconds) the animation will take to finish. Defaults to DefaultDurationMillis
the amount of time the animation will wait before it starts running. Defaults to 0.
the easing function that will be used to interoplate between the start and end value of the animation. Defaults to FastOutSlowInEasing.
Properties
Functions
Calculates the duration of an animation. For duration-based animations, this will return the pre-defined duration. For physics-based animations, the duration will be estimated based on the physics configuration (such as spring stiffness, damping ratio, visibility threshold) as well as the initialValue, targetValue values, and initialVelocity.
Calculates the end velocity of the animation with the provided start/end values, and start velocity. For duration-based animations, end velocity will be the velocity of the animation at the duration time. This is also the default assumption. However, for spring animations, the transient trailing velocity will be snapped to zero.
Create an com.jakewharton.mosaic.animation.VectorizedAnimationSpec that animates AnimationVector from a FloatAnimationSpec. Every dimension of the AnimationVector will be animated using the given FloatAnimationSpec.