---
title: "MutableContentTransform"
description: "Creates a MutableContentTransform and applies the provided configuration block."
type: "function"
lastmod: "2026-06-18T10:32:52.742857Z"
---
## API Reference

### MutableContentTransform

> Source set: Common

```kotlin
@ExperimentalDeferredTransitionApi
public inline fun MutableContentTransform(
    initialVeilMatchParentSize: Boolean = false,
    targetVeilMatchParentSize: Boolean = false,
    noinline initialOffsetVelocityProvider: (() -> Offset)? = null,
    noinline targetOffsetVelocityProvider: (() -> Offset)? = null,
    block: MutableContentTransform.() -> Unit = {},
): MutableContentTransform
```

Creates a [MutableContentTransform](/jetpack-compose/androidx.compose.animation/animation/functions/MutableContentTransform) and applies the provided configuration `block`.

#### Parameters

| | |
| --- | --- |
| initialVeilMatchParentSize | Whether the initial content's veil should match the parent size. |
| targetVeilMatchParentSize | Whether the target content's veil should match the parent size. |
| initialOffsetVelocityProvider | The velocity of the offset change for the exiting content in pixels/sec. If `null`, the system will automatically calculate the velocity based on [TransformScope.offset](/jetpack-compose/androidx.compose.animation/animation/interfaces/TransformScope) changes during the deferred phase. |
| targetOffsetVelocityProvider | The velocity of the offset change for the entering content in pixels/sec. If `null`, the system will automatically calculate the velocity based on [TransformScope.offset](/jetpack-compose/androidx.compose.animation/animation/interfaces/TransformScope) changes during the deferred phase. |
| block | A configuration block to set up the transformations for initial and target content. |
