Shared Element Transition in Jetpack Compose
This introduces three new things:
- SharedTransitionLayout — This is required to enable the transition animation between the composables.
- Modifier.sharedElement() — This should be used when you need to match the other composable.
- Modifier.sharedBounds() — This should be used as the container bounds for where the transition should take place.