# InfiniteTransition.TransitionAnimationState

Artifact: [androidx.compose.animation:animation-core](https://developer.android.com/jetpack/androidx/releases/compose-animation) [View Source](https://cs.android.com/search?q=file:androidx/compose/animation/core/InfiniteTransition.kt+class:androidx.compose.animation.core.InfiniteTransition.TransitionAnimationState) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.4.0) Common/All
- Cmn

  ```
  inner class InfiniteTransition.TransitionAnimationState<T : Any?, V : AnimationVector> : State<T>
  ```

*** ** * ** ***

Each animation created using `https://developer.android.com/reference/kotlin/androidx/compose/animation/animateColor.composable#(androidx.compose.animation.core.Transition).animateColor(kotlin.Function1,kotlin.String,kotlin.Function1)`, `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/animateFloat.composable#(androidx.compose.animation.core.InfiniteTransition).animateFloat(kotlin.Float,kotlin.Float,androidx.compose.animation.core.InfiniteRepeatableSpec,kotlin.String)`, or `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/animateValue.composable#(androidx.compose.animation.core.InfiniteTransition).animateValue(kotlin.Any,kotlin.Any,androidx.compose.animation.core.TwoWayConverter,androidx.compose.animation.core.InfiniteRepeatableSpec,kotlin.String)` is represented as a `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/InfiniteTransition.TransitionAnimationState` in `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/InfiniteTransition`. `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/InfiniteTransition.TransitionAnimationState#typeConverter()` converts the animation value from/to an `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector`. `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/InfiniteTransition.TransitionAnimationState#label()` differentiates this animation from others in android studio.

## Summary

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/TargetBasedAnimation<T, V>` | `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/InfiniteTransition.TransitionAnimationState#animation()` All the animation configurations including initial value/velocity \& target value for animating from `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/InfiniteTransition.TransitionAnimationState#initialValue()` to `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/InfiniteTransition.TransitionAnimationState#targetValue()` are captured in `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/InfiniteTransition.TransitionAnimationState#animation()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec<T>` | `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/InfiniteTransition.TransitionAnimationState#animationSpec()` `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec` that is used for current animation run. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/InfiniteTransition.TransitionAnimationState#label()` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/TwoWayConverter<T, V>` | `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/InfiniteTransition.TransitionAnimationState#typeConverter()` | Cmn |
| `open T` | `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/InfiniteTransition.TransitionAnimationState#value()` | Cmn |

## Public properties

### animation

Cmn Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.4.0)

```
val animation: TargetBasedAnimation<T, V>
```

All the animation configurations including initial value/velocity \& target value for animating from `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/InfiniteTransition.TransitionAnimationState#initialValue()` to `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/InfiniteTransition.TransitionAnimationState#targetValue()` are captured in `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/InfiniteTransition.TransitionAnimationState#animation()`.

### animationSpec

Cmn Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.4.0)

```
val animationSpec: AnimationSpec<T>
```

`https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationSpec` that is used for current animation run.

### label

Cmn Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.4.0)

```
val label: String
```

### typeConverter

Cmn Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.4.0)

```
val typeConverter: TwoWayConverter<T, V>
```

### value

Cmn Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.4.0)

```
open val value: T
```