0Pricing
Jetpack Compose Academy · Lesson

AnimatedVisibility & Crossfade

Animate appearance and content swaps.

Animating What Appears

Sometimes you want content to slide or fade in rather than pop. AnimatedVisibility animates a Composable as it enters and exits the screen. ✨

Wrap What You Show

Give AnimatedVisibility a boolean and a content lambda. When the boolean flips, it animates that content in or out for you.

AnimatedVisibility(visible = show) {
  Text("Hello!")
}

All lessons in this course

  1. animate*AsState for Simple Tweens
  2. AnimatedVisibility & Crossfade
  3. updateTransition for Coordinated Motion
  4. Gesture-Driven Animations
← Back to Jetpack Compose Academy