title: Android Compose - crossfade with sizechange
body: <p>My Composable has the following structure:</p>
  <pre class="lang-kotlin prettyprint-override"><code>var expandedState by remember { mutableStateOf(false) }
  
  Box(modifier = Modifier.animateContentSize()) {
              Crossfade(targetState = expandedState) { expanded -&gt;
                  if (expanded) {
                      ExpanedContent()
                  } else {
                      CollapsedContent()
                  }
              }
  }
  </code></pre>
  <p>The animation from collapsed to expanded state works as expected: both crossfade and size change animation run simultaneously. When collapsing, though. The crossfade animation runs first, after which the size change animation starts.</p>
  <p>How can I animate the state in such a way that the crossfade and size change animations run simultaneously for both directions?</p>