createAnimationSpec

abstract fun createAnimationSpec(initialSize: Dimension, targetSize: Dimension): FiniteAnimationSpec<Dimension>

Creates the size animation spec from copies of the container and content sizes.

Return

the spec the size animates under.

Parameters

initialSize

the container's size when the transition starts.

targetSize

the target content's size.