---
title: "VectorizedFloatAnimationSpec"
description: "A convenient implementation of [VectorizedFloatAnimationSpec] that turns a [FloatAnimationSpec]
into a multi-dimensional [VectorizedFloatAnimationSpec], by using the same [FloatAnimationSpec]
on each dimension of the [AnimationVector] that is being animated."
type: "class"
---

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


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

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


```kotlin
public class VectorizedFloatAnimationSpec<V : AnimationVector>
internal constructor(private val anims: Animations) : VectorizedFiniteAnimationSpec<V>
```


A convenient implementation of `VectorizedFloatAnimationSpec` that turns a `FloatAnimationSpec`
into a multi-dimensional `VectorizedFloatAnimationSpec`, by using the same `FloatAnimationSpec`
on each dimension of the `AnimationVector` that is being animated.


## Secondary Constructors

```kotlin
public constructor(
    anim: FloatAnimationSpec
) : this(
    object : Animations {
        override fun get(index: Int): FloatAnimationSpec {
            return anim
        }
    }
)
```


Creates a `VectorizedAnimationSpec` from a `FloatAnimationSpec`. The given
`FloatAnimationSpec` will be used to animate every dimension of the `AnimationVector`.

#### Parameters

| | |
| --- | --- |
| anim | the animation spec for animating each dimension of the `AnimationVector` |




