Use AnimatedVisibility to hide or show a composable. Children inside AnimatedVisibility can use Modifier.animateEnterExit() for their own enter or exit animation. AnimatedVisibility will eventually remove the item from the composition once the animation has finished.