animateInt

fun animateInt(transitionSpec: Segment<S>.() -> FiniteAnimationSpec<Int> = { spring() }, label: String = "int", targetValueByState: (S) -> Int): Value<Int>

Animates an Int property as part of this transition.

Return

A Value containing the current animated int.

Parameters

transitionSpec

Provides the animation spec. Defaults to spring.

label

Optional label for this animation, used for tracing attribution.

targetValueByState

Maps the target state to the target int value.