---
title: "ChangeSizeConfig"
description: "Configuration parameters for the size change (expand/shrink) effect of an [EnterTransition] or [ExitTransition]."
type: "class"
---
## API Reference

> Source set: Common

```kotlin
public class ChangeSizeConfig internal constructor(
    public val alignment: Alignment,
    public val size: (fullSize: IntSize) -> IntSize = { IntSize(0, 0) },
    public val animationSpec: FiniteAnimationSpec<IntSize>,
    @get:Suppress("GetterSetterNames") public val clip: Boolean = true,
)
```

Configuration parameters for the size change (expand/shrink) 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.
```
