Skip to content

Instantly share code, notes, and snippets.

@bharath914
Created April 13, 2024 04:31
Show Gist options
  • Save bharath914/9ab30fe09fe256cda359b441f52d31b0 to your computer and use it in GitHub Desktop.
Save bharath914/9ab30fe09fe256cda359b441f52d31b0 to your computer and use it in GitHub Desktop.
Quick Card Animation in Jetpack Compose
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)
@bharath914
Copy link
Author

This Is How You Can Stand Out your Lazycolumn.

@vicky4421
Copy link

i'll try this in next project
thank you for this valuable information!

@bharath914
Copy link
Author

Happy to share knowledge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment