motionTween

fun <T> motionTween(reducedMotion: Boolean, duration: Int = MotionTokens.Duration.MEDIUM2, easing: Easing = MotionTokens.Easing.Emphasized): FiniteAnimationSpec<T>(source)

A tween over duration ms with easing, or snap when reducedMotion is set. Defaults to the M3 medium2 duration and the emphasized curve. Non-composable form for use outside composition and in tests; see the composable overload to default from LocalReducedMotion.


fun <T> motionTween(duration: Int = MotionTokens.Duration.MEDIUM2, easing: Easing = MotionTokens.Easing.Emphasized): FiniteAnimationSpec<T>(source)

motionTween that follows LocalReducedMotion.