InfiniteTransition
InfiniteTransition is responsible for running child animations. Child animations can be added using androidx.compose.animation.animateColor, InfiniteTransition.animateFloat, or InfiniteTransition.animateValue. Child animations will start running as soon as they enter the composition, and will not stop until they are removed from the composition.
Parameters
A label for differentiating this animation from others in android studio.
Types
Each animation created using androidx.compose.animation.animateColor, InfiniteTransition.animateFloat, or InfiniteTransition.animateValue is represented as a TransitionAnimationState in InfiniteTransition. typeConverter converts the animation value from/to an AnimationVector. label differentiates this animation from others in android studio.
Properties
Functions
Creates an animation of Float type that runs infinitely as a part of the given InfiniteTransition.
Creates an animation of type T that runs infinitely as a part of the given InfiniteTransition. Any data type can be animated so long as it can be converted from and to an AnimationVector. This conversion needs to be provided as a typeConverter. Some examples of such TwoWayConverter are: Int.VectorConverter, Float.VectorConverter, etc