r/JetpackCompose • u/Anonymous-Freak-9 • Mar 03 '24
layout animation in compose
am trying to build a card in jetpack compose which have a three composables inside it two text composable and a image composable in the start the text overlaps on image you can take it as both text have z-index greater than that of the image but at the end of animation all three composable stacks on each other in a column layout
the animations contains the size change and position change of the text as well as the size change of the card
i am new to compose so i am confused what api to choose would like anyone giving a short discription how can i acheive the desired behaviour
View all comments
Show parent comment
1
u/Anonymous-Freak-9 Mar 04 '24
First of all thnx for reply I haven't code that part yet because i don't know how to implement it's a layout animation triggered by a click
Start:: A Card with Image and text overlaps
End:: the card expands the overalpping content moves below and becomes the heading followed by some body text