ExitTransitionSchema
Exit transition applied when a screen or animated content leaves the composition.
Multiple variants can coexist in ContentTransitionSchema.exit — they are combined with the + operator to run simultaneously (e.g. fade + slide).
Variants:
FadeOut —
fadeOut(animationSpec, targetAlpha). Default: alpha1f → 0fover 300ms.SlideOutHorizontally —
slideOutHorizontally(animationSpec, targetOffsetX). Default offset: OffsetType.NegativeFull (slides out to the left).SlideOutVertically —
slideOutVertically(animationSpec, targetOffsetY). Default offset: OffsetType.NegativeFull (slides out upward).KeepUntilTransitionsFinished — currently maps to
ExitTransition.Nonein the client (AnimationSchemaExtensions). The TODO comment indicates this should useExitTransition.KeepUntilTransitionsFinishedonce it becomes stable public API.None —
ExitTransition.None(no animation).
How OffsetType maps to pixel offset (lambda { fullSize }):
OffsetType.Full →
+fullSize(exits to right/bottom)OffsetType.NegativeFull →
-fullSize(exits to left/top — default for slide-out)OffsetType.Fixed → exact pixel value
OffsetType.Fraction →
(fullSize * factor).toInt()