Function

animateEnterExit

Applies enter and exit visibility transitions to a component in a state layout.

animateEnterExit

Source set: Android
public fun RemoteModifier.animateEnterExit(
    enter: RemoteEnterTransition = RemoteEnterTransition.FadeIn,
    exit: RemoteExitTransition = RemoteExitTransition.FadeOut,
    spec: RemoteTweenSpec = remoteTween(),
): RemoteModifier

Applies enter and exit visibility transitions to a component in a state layout.

Parameters

enter transition effect when component enters the layout
exit transition effect when component exits the layout
spec animation specification for visibility transitions (e.g. remoteTween)

Content updated: