---
title: "FadeConfig"
description: "Configuration parameters for the fade effect of an [EnterTransition] or [ExitTransition]."
type: "class"
---
## API Reference

> Source set: Common

```kotlin
public class FadeConfig internal constructor(
    public val alpha: Float,
    public val animationSpec: FiniteAnimationSpec<Float>,
)
```

Configuration parameters for the fade effect of an [EnterTransition](/jetpack-compose/androidx.compose.animation/animation/classes/EnterTransition/api) or [ExitTransition](/jetpack-compose/androidx.compose.animation/animation/classes/ExitTransition/api).

## 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.
```
