Class

SpatialEnterTransition

SpatialEnterTransition defines how an AnimatedSpatialVisibility Composable appears on screen as it becomes visible.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public sealed class SpatialEnterTransition

SpatialEnterTransition defines how an AnimatedSpatialVisibility Composable appears on screen as it becomes visible. The categories of EnterTransitions available are:

  1. fade: SpatialTransitions.fadeIn
  2. slide: SpatialTransitions.slideIn, SpatialTransitions.slideInHorizontally, SpatialTransitions.slideInVertically, SpatialTransitions.slideInDepth

SpatialEnterTransition.None can be used when no enter transition is desired. Different SpatialEnterTransitions can be combined using SpatialEnterTransition.plus.

Note: SpatialTransitions.fadeIn and SpatialTransitions.slideIn do not affect the size of the AnimatedVisibility composable.

Functions

plus

public operator fun plus(enter: SpatialEnterTransition): SpatialEnterTransition

Combines different enter transitions. The order of the SpatialEnterTransitions being combined does not matter, as these SpatialEnterTransitions will start simultaneously. The order of applying transforms from these enter transitions (if defined) is: alpha and scale first, shrink or expand, then slide.

Parameters

enter another SpatialEnterTransition to be combined

Companion Object

Properties

Android
public val None: SpatialEnterTransition

This can be used when no enter transition is desired.