slideInVertically
fun slideInVertically(spec: FiniteAnimationSpec<Float> = spring(), initialOffsetY: (fullHeight: Int) -> Int = { -it }): EnterTransition
Slides content in vertically. The initialOffsetY lambda receives the full height of the component and returns the pixel offset to start from.
Parameters
spec
The animation spec for the slide. Defaults to spring.
initialOffsetY
Returns the initial Y offset in pixels. Defaults to sliding down from above (-fullHeight).
fun slideInVertically(duration: Duration, initialOffsetY: (fullHeight: Int) -> Int = { -it }): EnterTransition
Slides content in vertically over duration — a shortcut for slideInVertically(tween(duration), initialOffsetY).
Parameters
duration
How long the slide runs.
initialOffsetY
Returns the initial Y offset in pixels. Defaults to sliding down from above (-fullHeight).