AnimatedSpacingColumnAnimation

data class AnimatedSpacingColumnAnimation(val animationSpec: FiniteAnimationSpec<Float> = spring(), val fade: Boolean = true, val expandFrom: Alignment.Vertical = Alignment.Top, val shrinkTowards: Alignment.Vertical = Alignment.Top)

Visibility-animation configuration for AnimatedSpacingColumn. A child inherits its container's instance unless it supplies this type to AnimatedSpacingColumnScope.AnimatedVisibility.

fade is a temporary API for the only additional visual effect currently supported. It is expected to be replaced by Compose-native enter/exit transitions once the project can depend on transition configuration that allows size-changing expand and shrink transitions to be rejected safely.

Parameters

animationSpec

animation used for the presence progress that drives structural sizing, spacing, and fade.

fade

whether to apply that progress as alpha in addition to structural clipping.

expandFrom

alignment from which content is structurally revealed while entering.

shrinkTowards

alignment towards which content structurally collapses while exiting.

Constructors

Link copied to clipboard
constructor(animationSpec: FiniteAnimationSpec<Float> = spring(), fade: Boolean = true, expandFrom: Alignment.Vertical = Alignment.Top, shrinkTowards: Alignment.Vertical = Alignment.Top)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard