🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

animateRotateBy

Animate rotate by a ratio of degrees clockwise and suspend until its finished.

animateRotateBy

Source set: Common
@Deprecated(message = "Maintained for binary compatibility", level = DeprecationLevel.HIDDEN)
public suspend fun TransformableState.animateRotateBy(
    degrees: Float,
    animationSpec: AnimationSpec<Float> = SpringSpec(stiffness = Spring.StiffnessLow),
): Unit

Animate rotate by a ratio of degrees clockwise and suspend until its finished.

Parameters

degrees the degrees by which to rotate clockwise
animationSpec AnimationSpec to be used for animation

animateRotateBy

Source set: Common
public suspend fun TransformableState.animateRotateBy(
    degrees: Float,
    animationSpec: AnimationSpec<Float> = SpringSpec(stiffness = Spring.StiffnessLow),
    centroid: Offset = Offset.Unspecified,
)

Animate rotate by a ratio of degrees clockwise and suspend until its finished.

Parameters

degrees the degrees by which to rotate clockwise
animationSpec AnimationSpec to be used for animation
centroid the Offset around which the rotation should occur, if any. The default value is Offset.Unspecified, which leaves the behavior up to the implementation of the TransformableState.