Yeah these transitions are slick!
Compose has material package, so it personally makes sense to have this transitions provided out of the box at some point in the future.
Having said that, you already can make it on your own. Take a look at the
Crossfade
component (source). You can copy and tweak it to add some axis motion when content is changing, for example, making it same or at least very close to material motion specs
g
galex
07/21/2020, 10:24 AM
Awesome news! For transitions I see CrossFade is a good starting point, what about modal content?
tweaking might be enough. You see, you can change CrossFade to be not only crossfade, but any enter / exit animation for appear/disappear content. To make it more like
EnterExitTransition
, and not Crossfade š
matvei
07/21/2020, 10:36 AM
And with that you can make everything from the section you've sent
g
galex
07/21/2020, 10:37 AM
Super interesting! I think at the end if would be super helpful if we had a composable ready to use for each of the examples there, in the meantime Iād deep dive inside of CrossFade, thanks!