centerByLayoutCoordinate

suspend fun centerByLayoutCoordinate(offset: Offset, scale: Float = 3.0f, animationSpec: AnimationSpec<Float> = tween(700))

Animates the centering of content by modifying the offset and scale based on layout coordinates.

Parameters

offset

The offset to apply for centering the content.

scale

The scale to apply for zooming the content.

animationSpec

AnimationSpec for centering and scaling.