animateDimen

fun animateDimen(transitionSpec: Segment<S>.() -> FiniteAnimationSpec<Dimen> = { spring() }, label: String = "dimen", targetValueByState: (S) -> Dimen): Value<Dimen>

Animates a Dimen property as part of this transition.

Return

A Value containing the current animated dimension.

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 dimension value.