Created
April 13, 2024 04:31
-
-
Save bharath914/9ab30fe09fe256cda359b441f52d31b0 to your computer and use it in GitHub Desktop.
Quick Card Animation in Jetpack Compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val animatable = remember { | |
Animatable(0.5f) | |
} | |
LaunchedEffect(key1 = true) { | |
animatable.animateTo(1f, tween(350, easing = FastOutSlowInEasing)) | |
// you can tweak out and customize these animations. | |
} | |
// add this animatable to your card's modifier graphics layer. | |
BookItem(modifier = cardMod.graphicsLayer { | |
this.scaleX = animatable.value | |
this.scaleY = animatable.value | |
}, entity = item) |
i'll try this in next project
thank you for this valuable information!
Happy to share knowledge.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This Is How You Can Stand Out your Lazycolumn.