Skip to content

Instantly share code, notes, and snippets.

@Sardorbekcyber
Created February 24, 2024 11:12
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 Sardorbekcyber/fe3270ce4f6af95c1acb6768966334df to your computer and use it in GitHub Desktop.
Save Sardorbekcyber/fe3270ce4f6af95c1acb6768966334df to your computer and use it in GitHub Desktop.
enterTransition = {
slideIntoContainer(
towards = AnimatedContentTransitionScope.SlideDirection.Start,
animationSpec = tween(
durationMillis = 400,
easing = LinearOutSlowInEasing
),
initialOffset = { it }
)
},
popEnterTransition = {
slideIntoContainer(
towards = AnimatedContentTransitionScope.SlideDirection.Start,
animationSpec = tween(
durationMillis = 400,
easing = LinearOutSlowInEasing
),
initialOffset = { -it / 3 }
)
},
exitTransition = {
slideOutOfContainer(
towards = AnimatedContentTransitionScope.SlideDirection.End,
animationSpec = tween(
durationMillis = 400,
easing = FastOutSlowInEasing
),
targetOffset = { -it / 3 },
)
},
popExitTransition = {
slideOutOfContainer(
towards = AnimatedContentTransitionScope.SlideDirection.End,
animationSpec = tween(
durationMillis = 400,
easing = FastOutSlowInEasing
),
targetOffset = { it },
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment