Source set: Common
Added in 1.11.0-rc01
public interface SizeTransform
SizeTransform defines how to transform from one size to another when the size of the content changes. When clip is true, the content will be clipped to the animation size. createAnimationSpec specifies the animation spec for the size animation based on the initial and target size.
Properties
clip
Source set: Common
Added in 1.11.0-rc01
public val clip: Boolean
Whether the content should be clipped using the animated size.
Functions
createAnimationSpec
Added in 1.11.0-rc01
public fun createAnimationSpec(
initialSize: IntSize,
targetSize: IntSize,
): FiniteAnimationSpec<IntSize>
This allows FiniteAnimationSpec to be defined based on the initialSize before the size animation and the targetSize of the animation.