androidx.compose.animation
Classes
EnterTransition |
EnterTransition defines how an AnimatedVisibility Composable appears on screen as it becomes visible. |
ExitTransition |
ExitTransition defines how an AnimatedVisibility Composable disappears on screen as it becomes not visible. |
SplineBasedFloatDecayAnimationSpec |
A native Android fling curve decay. |
Annotations
ExperimentalAnimationApi |
Top-level functions summary
Animatable<Color, AnimationVector4D> |
Animatable(initialValue: Color) This Animatable function creates a Color value holder that automatically animates its value when the value is changed via animateTo. |
Unit |
AnimatedVisibility(visible: Boolean, modifier: Modifier = Modifier, enter: EnterTransition = fadeIn() + expandIn(), exit: ExitTransition = shrinkOut() + fadeOut(), initiallyVisible: Boolean = visible, content: () -> Unit) AnimatedVisibility composable animates the appearance and disappearance of its content, as visible value changes. |
Unit |
Crossfade(targetState: T, modifier: Modifier = Modifier, animationSpec: FiniteAnimationSpec<Float> = tween(), content: (T) -> Unit) Crossfade allows to switch between two layouts with a crossfade animation. |
State<Color> |
animateColorAsState(targetValue: Color, animationSpec: AnimationSpec<Color> = colorDefaultSpring, finishedListener: (Color) -> Unit = null) Fire-and-forget animation function for Color. |
actual DecayAnimationSpec<Float> | |
EnterTransition |
expandHorizontally(expandFrom: Alignment.Horizontal = Alignment.End, initialWidth: (fullWidth: Int) -> Int = { 0 }, animationSpec: FiniteAnimationSpec<IntSize> = spring(), clip: Boolean = true) This expands the clip bounds of the appearing content horizontally, from the width returned from initialWidth to the full width. |
EnterTransition |
expandIn(expandFrom: Alignment = Alignment.BottomEnd, initialSize: (fullSize: IntSize) -> IntSize = { IntSize(0, 0) }, animationSpec: FiniteAnimationSpec<IntSize> = spring(), clip: Boolean = true) This expands the clip bounds of the appearing content from the size returned from initialSize to the full size. |
EnterTransition |
expandVertically(expandFrom: Alignment.Vertical = Alignment.Bottom, initialHeight: (fullHeight: Int) -> Int = { 0 }, animationSpec: FiniteAnimationSpec< |