rememberInfiniteTransition

Composable Function

Common
@Composable
public fun rememberInfiniteTransition(label: String = "InfiniteTransition"): InfiniteTransition

Creates a InfiniteTransition that runs infinite child animations. Child animations can be added using InfiniteTransition.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

labelA label for differentiating this animation from others in android studio.
Common

Deprecated rememberInfiniteTransition APIs now have a new label parameter added.

@Composable
public fun rememberInfiniteTransition(): InfiniteTransition