public object SharedTransitionDefaults
Default values for SharedTransitionScope.sharedElement, SharedTransitionScope.sharedBounds and SharedTransitionScope.renderInSharedTransitionScopeOverlay related configurations.
Properties
EnterTransition
public val EnterTransition: EnterTransition = fadeIn()
Default enter transition used in SharedTransitionScope.sharedBounds.
ExitTransition
public val ExitTransition: ExitTransition = fadeOut()
Default exit transition used in SharedTransitionScope.sharedBounds.
BoundsTransform
public val BoundsTransform: BoundsTransform = BoundsTransform { _, _ -> DefaultSpring }
Default bounds transform used in SharedTransitionScope.sharedBounds. This default lambda employs a spring for the animation.
ResizeMode
public val ResizeMode: ResizeMode = ScaleToBoundsImpl(ContentScale.FillWidth, Center)
Default resize mode used in SharedTransitionScope.sharedBounds.
Members
SharedContentConfig
public object SharedContentConfig : SharedTransitionScope.SharedContentConfig
Default SharedContentConfig used in SharedTransitionScope.rememberSharedContentState. This default SharedTransitionScope.SharedContentConfig enables shared elements and bounds, and keeps them enabled while the animation is in-flight. It also sets the alternativeTargetBoundsInTransitionScopeAfterRemoval to null, ensuring the shared element transition is canceled immediately if the incoming shared element is removed during the animation.