Skip to content

Commit fc76190

Browse files
authored
Merge pull request #1164 from DimensionDev/feature/animated_text
update animated text style
2 parents 867e243 + 108da71 commit fc76190

File tree

1 file changed

+2
-2
lines changed
  • shared/ui/component/src/commonMain/kotlin/dev/dimension/flare/ui/component

1 file changed

+2
-2
lines changed

shared/ui/component/src/commonMain/kotlin/dev/dimension/flare/ui/component/AnimatedText.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ internal fun AnimatedNumber(
5959
targetState = digit,
6060
transitionSpec = {
6161
if (targetState > initialState) {
62-
fadeIn() + slideInVertically { -it } togetherWith fadeOut() + slideOutVertically { it }
63-
} else {
6462
fadeIn() + slideInVertically { it } togetherWith fadeOut() + slideOutVertically { -it }
63+
} else {
64+
fadeIn() + slideInVertically { -it } togetherWith fadeOut() + slideOutVertically { it }
6565
}.using(SizeTransform(clip = false))
6666
},
6767
) { digit ->

0 commit comments

Comments
 (0)