I encountered pretty weird behaviour while using
infiniteRepetable
: I'm using
tween
as
animation
and while having
durationMillis < 1000*48
(48s) everything works perfectly fine, but while trying to animate with
durationMillis
greater than 48s (which seems super weird), it justs snaps from
initialValue
to
targetValue
. Do you have any idea why is it not working correctly? Am i doing something wrong? Here is super simple
Composable
that allows to reproduce my problem:
@Composable
fun Test() {
val infTrans = rememberInfiniteTransition()
val value = infTrans.animateFloat(
initialValue = 0f, targetValue = 1f, animationSpec = infiniteRepeatable(
animation = tween(1000 * 60, easing = LinearEasing),
)
)
Text(value.value.toString())
}