Skip to content

Commit fbe29f9

Browse files
committed
feat: tweak top bar appear animation
1 parent 4519996 commit fbe29f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

composeApp/src/wasmJsMain/kotlin/org/nsh07/nsh07/ui/homeScreen/AppHomeScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ fun AppHomeScreen(
161161
topBar = {
162162
AnimatedVisibility(
163163
firstVisibleItem > 1,
164-
enter = slideInVertically(motionScheme.defaultSpatialSpec(), initialOffsetY = { -it }),
165-
exit = slideOutVertically(motionScheme.defaultSpatialSpec(), targetOffsetY = { -it })
164+
enter = slideInVertically(motionScheme.slowSpatialSpec(), initialOffsetY = { -it }),
165+
exit = slideOutVertically(motionScheme.slowSpatialSpec(), targetOffsetY = { -it })
166166
) {
167167
val topBarContent = when (firstVisibleItem) {
168168
in paragraphCount + 2..<paragraphCount + experienceCount + 3 -> 1

0 commit comments

Comments
 (0)