---
title: "EnterExitTransitionConfig"
description: "Configurations for all transitions within an [EnterTransition] or [ExitTransition]."
type: "class"
---
## API Reference

> Source set: Common

```kotlin
public class EnterExitTransitionConfig internal constructor(
    public val fade: FadeConfig? = null,
    public val slide: SlideConfig? = null,
    public val changeSize: ChangeSizeConfig? = null,
    public val scale: ScaleConfig? = null,
    @get:Suppress("GetterSetterNames") public val veil: VeilConfig? = null,
    internal val hold: Boolean = false,
    internal val effectsMap: Map<TransitionEffectKey<*>, TransitionEffect> = emptyMap(),
)
```

Configurations for all transitions within an [EnterTransition](/jetpack-compose/androidx.compose.animation/animation/classes/EnterTransition/api) or [ExitTransition](/jetpack-compose/androidx.compose.animation/animation/classes/ExitTransition/api).

This class exposes the internal parameters for all transition effects that have been combined
into the transition. If an effect is not present in the transition, its corresponding
configuration property will be `null`.

## Functions

### equals

> Source set: Common

```kotlin
override fun equals(other: Any?): Boolean
```

### hashCode

> Source set: Common

```kotlin
override fun hashCode(): Int
```

### toString

> Source set: Common

```kotlin
override fun toString(): String
```

## Code Examples

### EnterExitTransitionConfigSample

```kotlin
@Sampled
@Composable
fun EnterExitTransitionConfigSample() {
    var visible by remember { mutableStateOf(true) }

    // A custom transition container that uses enter/exit transition configurations to build custom
    // transition behavior.
```
