animateZoomBy

Function

Common
suspend fun TransformableState.animateZoomBy(
    zoomFactor: Float,
    animationSpec: AnimationSpec<Float> = SpringSpec(stiffness = Spring.StiffnessLow),
)

Animate zoom by a ratio of zoomFactor over the current size and suspend until its finished.

Parameters

zoomFactorratio over the current size by which to zoom. For example, if zoomFactor is 3f, zoom will be increased 3 fold from the current value.
animationSpecAnimationSpec to be used for animation