---
title: "BoundsTransform"
description: "[BoundsTransform] defines the animation spec used to animate from initial bounds to the target
bounds."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
public fun interface BoundsTransform
```


`BoundsTransform` defines the animation spec used to animate from initial bounds to the target
bounds.


## Functions

```kotlin
public fun createAnimationSpec(
        initialBounds: Rect,
        targetBounds: Rect,
    ): FiniteAnimationSpec<Rect>
```


Returns a `FiniteAnimationSpec` for animating the bounds from `initialBounds` to
`targetBounds`.



