animateScale

fun InfiniteTransition.animateScale(initialValue: Scale, targetValue: Scale, animationSpec: InfiniteRepeatableSpec<Scale>, label: String = "ScaleAnimation"): State<Scale>
inline fun <S> Transition<S>.animateScale(noinline transitionSpec: @Composable Transition.Segment<S>.() -> FiniteAnimationSpec<Scale> = { spring() }, label: String = "ScaleAnimation", targetValueByState: @Composable (state: S) -> Scale): State<Scale>

See also