animateRotation

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

See also