animateFloat
fun animateFloat(from: Float, to: Float, animation: DurationBasedAnimationSpec<Float> = tween(), repeatMode: RepeatMode = RepeatMode.Reverse, initialStartOffset: StartOffset = StartOffset(0), label: String = "float"): Value<Float>
Loops a Float between from and to.
Parameters
animation
One forward-cycle spec. Defaults to a tween.
repeatMode
Whether each cycle restarts from from or reverses. Defaults to RepeatMode.Reverse.
initialStartOffset
A one-time phase/delay shift of the first cycle — use StartOffsetType.FastForward to stagger several loops.