createAnimationSpec
abstract fun createAnimationSpec(initialSize: Dimension, targetSize: Dimension): FiniteAnimationSpec<Dimension>
Creates the size animation spec.
Return
the spec the size animates under.
Parameters
initialSize
the container's size when the transition starts.
targetSize
the target content's size.