Skip to content

Instantly share code, notes, and snippets.

@pauloaapereira
Created March 16, 2021 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pauloaapereira/974ce082ff86266df8448f679fe45181 to your computer and use it in GitHub Desktop.
Save pauloaapereira/974ce082ff86266df8448f679fe45181 to your computer and use it in GitHub Desktop.
Jetpack Compose — Pulsating Effect — 1
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