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
zoomFactor | ratio over the current size by which to zoom. For example, if zoomFactor is 3f , zoom will be increased 3 fold from the current value. |
animationSpec | AnimationSpec to be used for animation |