Created
March 16, 2021 18:40
-
-
Save pauloaapereira/974ce082ff86266df8448f679fe45181 to your computer and use it in GitHub Desktop.
Jetpack Compose — Pulsating Effect — 1
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 infiniteTransition = rememberInfiniteTransition() | |
val scale by infiniteTransition.animateFloat( | |
initialValue = 1f, | |
targetValue = 1.2f, | |
animationSpec = infiniteRepeatable( | |
animation = tween(1000), | |
repeatMode = RepeatMode.Reverse | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment