Skip to content

Commit

Permalink
Slow down emoji loading anim
Browse files Browse the repository at this point in the history
  • Loading branch information
ksharma-xyz committed Nov 24, 2024
1 parent 22c2dd7 commit 4dadbab
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ fun LoadingEmojiAnim(modifier: Modifier = Modifier, emoji: String? = null) {

val rotation by infiniteTransition.animateFloat(
initialValue = 0f,
targetValue = 360f * 4,
targetValue = 360f * 3,
animationSpec = infiniteRepeatable(
animation = keyframes {
durationMillis = 2000 // Total animation duration
0f at 0 using FastOutLinearInEasing // Start at 0 rotation
360f * 4 at 1000 using LinearEasing // Fast rotation for 0.5 seconds (4 rotations)
360f * 4 at 2000 using FastOutSlowInEasing // Maintain rotation but slow down (cumulative 4 rotations)
360f * 3 at 1000 using LinearEasing // Fast rotation for 0.5 seconds (4 rotations)
360f * 3 at 2000 using FastOutSlowInEasing // Maintain rotation but slow down (cumulative 4 rotations)
},
repeatMode = RepeatMode.Reverse,
),
Expand Down

0 comments on commit 4dadbab

Please sign in to comment.